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