Module: BookingSync::API::Client::Inquiries
- Included in:
- BookingSync::API::Client
- Defined in:
- lib/bookingsync/api/client/inquiries.rb
Instance Method Summary collapse
-
#create_inquiry(rental, options = {}) ⇒ BookingSync::API::Resource
Create a new inquiry.
-
#inquiries(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List inquiries.
-
#inquiry(inquiry, options = {}) ⇒ BookingSync::API::Resource
Get a single inquiry.
Instance Method Details
#create_inquiry(rental, options = {}) ⇒ BookingSync::API::Resource
Create a new inquiry
31 32 33 |
# File 'lib/bookingsync/api/client/inquiries.rb', line 31 def create_inquiry(rental, = {}) post("rentals/#{rental}/inquiries", inquiries: []).pop end |
#inquiries(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List inquiries
Return list of inquiries for current account.
10 11 12 |
# File 'lib/bookingsync/api/client/inquiries.rb', line 10 def inquiries( = {}, &block) paginate :inquiries, , &block end |
#inquiry(inquiry, options = {}) ⇒ BookingSync::API::Resource
Get a single inquiry
21 22 23 |
# File 'lib/bookingsync/api/client/inquiries.rb', line 21 def inquiry(inquiry, = {}) get("inquiries/#{inquiry}", ).pop end |