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