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