Module: BookingSync::API::Client::Destinations
- Included in:
- BookingSync::API::Client
- Defined in:
- lib/bookingsync/api/client/destinations.rb
Instance Method Summary collapse
-
#destination(destination, options = {}) ⇒ BookingSync::API::Resource
Get a single destination.
-
#destinations(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List destinations.
Instance Method Details
#destination(destination, options = {}) ⇒ BookingSync::API::Resource
Get a single destination
28 29 30 |
# File 'lib/bookingsync/api/client/destinations.rb', line 28 def destination(destination, = {}) get("destinations/#{destination}", ).pop end |
#destinations(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List destinations
Returns destinations for the account user is authenticated with.
17 18 19 |
# File 'lib/bookingsync/api/client/destinations.rb', line 17 def destinations( = {}, &block) paginate :destinations, , &block end |