Class: Calendlyr::RoutingFormsResource
- Defined in:
- lib/calendlyr/resources/routing_forms.rb
Constant Summary
Constants inherited from Resource
Calendlyr::Resource::ERROR_CODES
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
- #list(organization:, **params) ⇒ Object
-
#list_submissions(form:, **params) ⇒ Object
Routing Form Submission.
- #retrieve(uuid:) ⇒ Object
- #retrieve_submission(uuid:) ⇒ Object
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Calendlyr::Resource
Instance Method Details
#list(organization:, **params) ⇒ Object
3 4 5 6 |
# File 'lib/calendlyr/resources/routing_forms.rb', line 3 def list(organization:, **params) response = get_request("routing_forms", params: {organization: organization}.merge(params)) Collection.from_response(response, type: RoutingForm, client: client) end |
#list_submissions(form:, **params) ⇒ Object
Routing Form Submission
13 14 15 16 |
# File 'lib/calendlyr/resources/routing_forms.rb', line 13 def list_submissions(form:, **params) response = get_request("routing_form_submissions", params: {form: form}.merge(params)) Collection.from_response(response, type: RoutingForms::Submission, client: client) end |
#retrieve(uuid:) ⇒ Object
8 9 10 |
# File 'lib/calendlyr/resources/routing_forms.rb', line 8 def retrieve(uuid:) RoutingForm.new(get_request("routing_forms/#{uuid}").dig("resource").merge(client: client)) end |
#retrieve_submission(uuid:) ⇒ Object
18 19 20 |
# File 'lib/calendlyr/resources/routing_forms.rb', line 18 def retrieve_submission(uuid:) RoutingForms::Submission.new get_request("routing_form_submissions/#{uuid}").dig("resource").merge(client: client) end |