Class: SabreApiRuby::Services::CheckFlightTickets
- Inherits:
-
Object
- Object
- SabreApiRuby::Services::CheckFlightTickets
- Defined in:
- lib/sabre_api_ruby/services/check_flight_tickets.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #call(booking_id) ⇒ Object
-
#initialize(client) ⇒ CheckFlightTickets
constructor
A new instance of CheckFlightTickets.
Constructor Details
#initialize(client) ⇒ CheckFlightTickets
Returns a new instance of CheckFlightTickets.
8 9 10 |
# File 'lib/sabre_api_ruby/services/check_flight_tickets.rb', line 8 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/sabre_api_ruby/services/check_flight_tickets.rb', line 6 def client @client end |
Instance Method Details
#call(booking_id) ⇒ Object
12 13 14 15 16 |
# File 'lib/sabre_api_ruby/services/check_flight_tickets.rb', line 12 def call(booking_id) validate_booking_id(booking_id) response = client.request(:get, "/booking/#{booking_id}/tickets") build_response(response) end |