module HonestRenter
  class FindAll
    include Expandable

    def initialize(resource_name, session, limit = nil, offset = nil)
      @resource_name = resource_name
      @session = session
      @limit = limit
      @offset = offset
    end

    def call
      client = HonestRenter::Client.new
      request = HonestRenter::Request.new(client, @session)
      query = {}.tap do |params|
        unless @expansions.nil? || @expansions.empty?
          params[:expand] = JSON(@expansions)
        end

        params[:limit] = @limit unless @limit.nil?
        params[:offset] = @offset unless @offset.nil?
      end

      request.get(@resource_name, query)
    end
  end
end

module HonestRenter
  class FindAll
    include Expandable

    def initialize(resource_name, session, limit = nil, offset = nil)
      @resource_name = resource_name
      @session = session
      @limit = limit
      @offset = offset
    end

    def call
      client = HonestRenter::Client.new
      request = HonestRenter::Request.new(client, @session)

      request.get(@resource_name, query)
    end

    def query
      {}.tap do |params|
        unless @expansions.nil? || @expansions.empty?
          params[:expand] = JSON(@expansions)
        end
        params[:limit] = @limit unless @limit.nil?
        params[:offset] = @offset unless @offset.nil?
      end
    end
  end
end

Move query to helper method
Move query to helper method
