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