module BookingSync::API::Client::ChangeOvers
Public Instance Methods
change_over(change_over)
click to toggle source
Get a single change_over
@param change_over
[BookingSync::API::Resource|Integer] ChangeOver or ID
of the change_over.
@return [BookingSync::API::Resource]
# File lib/bookingsync/api/client/change_overs.rb, line 24 def change_over(change_over) get("change_overs/#{change_over}").pop end
change_overs(options = {}, &block)
click to toggle source
List change_overs
Returns change_overs
for the rentals of the account, user is authenticated with. @param options [Hash] A customizable set of options. @option options [Array] fields: List of fields to be fetched. @return [Array<BookingSync::API::Resource>] Array of change_overs.
@example Get the list of change_overs
for the current account
change_overs = @api.change_overs change_overs.first.start_date # => "2014-05-30"
@see developers.bookingsync.com/reference/endpoints/change_overs/#list-change_overs
# File lib/bookingsync/api/client/change_overs.rb, line 15 def change_overs(options = {}, &block) paginate :change_overs, options, &block end