Module: SabreApiRuby
- Defined in:
- lib/sabre_api_ruby.rb,
lib/sabre_api_ruby/client.rb,
lib/sabre_api_ruby/errors.rb,
lib/sabre_api_ruby/version.rb,
lib/sabre_api_ruby/configuration.rb,
lib/sabre_api_ruby/services/get_booking.rb,
lib/sabre_api_ruby/services/cancel_booking.rb,
lib/sabre_api_ruby/services/create_booking.rb,
lib/sabre_api_ruby/services/modify_booking.rb,
lib/sabre_api_ruby/services/check_flight_tickets.rb
Defined Under Namespace
Modules: Services
Classes: APIError, AuthenticationError, Client, Configuration, ConfigurationError, Error, NotFoundError, RateLimitError, ServerError, ValidationError
Constant Summary
collapse
- VERSION =
'1.0.0'
Class Method Summary
collapse
Class Method Details
.cancel_booking(booking_id, params = {}) ⇒ Object
41
42
43
|
# File 'lib/sabre_api_ruby.rb', line 41
def cancel_booking(booking_id, params = {})
client.cancel_booking(booking_id, params)
end
|
.check_flight_tickets(booking_id) ⇒ Object
49
50
51
|
# File 'lib/sabre_api_ruby.rb', line 49
def check_flight_tickets(booking_id)
client.check_flight_tickets(booking_id)
end
|
.client ⇒ Object
29
30
31
|
# File 'lib/sabre_api_ruby.rb', line 29
def client
@client ||= Client.new(configuration)
end
|
.configuration ⇒ Object
21
22
23
|
# File 'lib/sabre_api_ruby.rb', line 21
def configuration
@configuration ||= Configuration.new
end
|
25
26
27
|
# File 'lib/sabre_api_ruby.rb', line 25
def configure
yield(configuration)
end
|
.create_booking(params = {}) ⇒ Object
33
34
35
|
# File 'lib/sabre_api_ruby.rb', line 33
def create_booking(params = {})
client.create_booking(params)
end
|
.get_booking(booking_id) ⇒ Object
37
38
39
|
# File 'lib/sabre_api_ruby.rb', line 37
def get_booking(booking_id)
client.get_booking(booking_id)
end
|
.modify_booking(booking_id, params = {}) ⇒ Object
45
46
47
|
# File 'lib/sabre_api_ruby.rb', line 45
def modify_booking(booking_id, params = {})
client.modify_booking(booking_id, params)
end
|