class DuffelAPI::Services::SeatMapsService

Public Instance Methods

list(options = {}) click to toggle source

Lists all seat maps for an offer. This data is __not__ paginated.

@option [Hash] :params Parameters to include in the HTTP querystring, including

any filters

@return [ListResponse] @raise [Errors::Error] when the Duffel API returns an error

# File lib/duffel_api/services/seat_maps_service.rb, line 12
def list(options = {})
  path = "/air/seat_maps"

  response = make_request(:get, path, options)

  ListResponse.new(
    response: response,
    unenveloped_body: unenvelope_body(response.parsed_body),
    resource_class: Resources::SeatMap,
  )
end