Class: DuffelAPI::Services::SeatMapsService

Inherits:
BaseService
  • Object
show all
Defined in:
lib/duffel_api/services/seat_maps_service.rb

Constant Summary

Constants inherited from BaseService

BaseService::DEFAULT_ALL_PARAMS

Instance Method Summary collapse

Methods inherited from BaseService

#initialize

Constructor Details

This class inherits a constructor from DuffelAPI::Services::BaseService

Instance Method Details

#list(options = {}) ⇒ ListResponse

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

Parameters:

  • [Hash] (Hash)

    a customizable set of options

Returns:

Raises:



12
13
14
15
16
17
18
19
20
21
22
# 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