Module: BookingSync::API::Client::NightlyRateMaps
- Included in:
- BookingSync::API::Client
- Defined in:
- lib/bookingsync/api/client/nightly_rate_maps.rb
Instance Method Summary collapse
-
#edit_nightly_rate_map(nightly_rate_map, options = {}) ⇒ BookingSync::API::Resource
Edit a nightly_rate_map.
-
#nightly_rate_map(nightly_rate_map) ⇒ BookingSync::API::Resource
Get a single nightly_rate_map.
-
#nightly_rate_maps(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List nightly_rate_maps.
Instance Method Details
#edit_nightly_rate_map(nightly_rate_map, options = {}) ⇒ BookingSync::API::Resource
Edit a nightly_rate_map
38 39 40 |
# File 'lib/bookingsync/api/client/nightly_rate_maps.rb', line 38 def edit_nightly_rate_map(nightly_rate_map, = {}) put("nightly_rate_maps/#{nightly_rate_map}", nightly_rate_maps: []).pop end |
#nightly_rate_map(nightly_rate_map) ⇒ BookingSync::API::Resource
Get a single nightly_rate_map
24 25 26 |
# File 'lib/bookingsync/api/client/nightly_rate_maps.rb', line 24 def nightly_rate_map(nightly_rate_map) get("nightly_rate_maps/#{nightly_rate_map}").pop end |
#nightly_rate_maps(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List nightly_rate_maps
Returns nightly_rate_maps for the rentals of the account, user is authenticated with.
15 16 17 |
# File 'lib/bookingsync/api/client/nightly_rate_maps.rb', line 15 def nightly_rate_maps( = {}, &block) paginate :nightly_rate_maps, , &block end |