Module: BookingSync::API::Client::Availabilities
- Included in:
- BookingSync::API::Client
- Defined in:
- lib/bookingsync/api/client/availabilities.rb
Instance Method Summary collapse
-
#availabilities(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List availabilities.
-
#availability(availability) ⇒ BookingSync::API::Resource
Get a single availability.
Instance Method Details
#availabilities(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List availabilities
Returns availabilities for the rentals of the account, user is authenticated with.
15 16 17 |
# File 'lib/bookingsync/api/client/availabilities.rb', line 15 def availabilities( = {}, &block) paginate :availabilities, , &block end |
#availability(availability) ⇒ BookingSync::API::Resource
Get a single availability
24 25 26 |
# File 'lib/bookingsync/api/client/availabilities.rb', line 24 def availability(availability) get("availabilities/#{availability}").pop end |