Module: BookingSync::API::Client::RentalsFees
- Included in:
- BookingSync::API::Client
- Defined in:
- lib/bookingsync/api/client/rentals_fees.rb
Instance Method Summary collapse
-
#create_rentals_fee(rental, options = {}) ⇒ BookingSync::API::Resource
Create a new rentals_fee.
-
#rentals_fee(rentals_fee, options = {}) ⇒ BookingSync::API::Resource
Get a single rentals_fee.
-
#rentals_fees(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List rentals fees.
Instance Method Details
#create_rentals_fee(rental, options = {}) ⇒ BookingSync::API::Resource
Create a new rentals_fee
38 39 40 |
# File 'lib/bookingsync/api/client/rentals_fees.rb', line 38 def create_rentals_fee(rental, = {}) post("rentals/#{rental}/rentals_fees", rentals_fees: []).pop end |
#rentals_fee(rentals_fee, options = {}) ⇒ BookingSync::API::Resource
Get a single rentals_fee
28 29 30 |
# File 'lib/bookingsync/api/client/rentals_fees.rb', line 28 def rentals_fee(rentals_fee, = {}) get("rentals_fees/#{rentals_fee}", ).pop end |
#rentals_fees(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List rentals fees
Returns rentals fees for the account user is authenticated with.
17 18 19 |
# File 'lib/bookingsync/api/client/rentals_fees.rb', line 17 def rentals_fees( = {}, &block) paginate :rentals_fees, , &block end |