Module: BookingSync::API::Client::Amenities
- Included in:
- BookingSync::API::Client
- Defined in:
- lib/bookingsync/api/client/amenities.rb
Instance Method Summary collapse
-
#amenities(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List amenities.
-
#amenity(amenity) ⇒ BookingSync::API::Resource
Get a single amenity.
Instance Method Details
#amenities(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List amenities
Returns all amenities supported in BookingSync.
15 16 17 |
# File 'lib/bookingsync/api/client/amenities.rb', line 15 def amenities( = {}, &block) paginate :amenities, , &block end |
#amenity(amenity) ⇒ BookingSync::API::Resource
Get a single amenity
24 25 26 |
# File 'lib/bookingsync/api/client/amenities.rb', line 24 def amenity(amenity) get("amenities/#{amenity}").pop end |