Class: Calendly::RoutingFormSubmission
- Inherits:
-
Object
- Object
- Calendly::RoutingFormSubmission
- Includes:
- ModelUtils
- Defined in:
- lib/calendly/models/routing_form_submission.rb
Overview
Calendly’s routing form submission model.
Constant Summary collapse
- UUID_RE =
%r{\A#{Client::API_HOST}/routing_form_submissions/(#{UUID_FORMAT})\z}.freeze
- TIME_FIELDS =
%i[created_at updated_at].freeze
Constants included from ModelUtils
Instance Attribute Summary collapse
-
#created_at ⇒ Time
Moment when user record was first created.
-
#questions_and_answers ⇒ Array<Calendly::RoutingFormSubmissionQuestionAndAnswer>
All Routing Form Submission questions with answers.
-
#result ⇒ Calendly::RoutingFormSubmissionEventTypeResult
Information about the event type Routing Form Submission result.
-
#routing_form ⇒ Calendly::RoutingForm
The routing form that’s associated with the submission.
-
#submitter ⇒ String?
The reference to the Invitee resource when routing form submission results in a scheduled meeting.
-
#submitter_type ⇒ String?
Type of the respondent resource that submitted the form and scheduled a meeting.
-
#tracking ⇒ Calendly::RoutingFormSubmissionTracking
All Routing Form Submission questions with answers.
-
#updated_at ⇒ Time
Moment when user record was last updated.
-
#uri ⇒ String
Canonical reference (unique identifier) for the routing form submission.
-
#uuid ⇒ String
unique id of the RoutingFormSubmission object.
Class Method Summary collapse
Instance Method Summary collapse
-
#fetch ⇒ Calendly::RoutingFormSubmission
Get Routing Form Submission associated with self.
Methods included from ModelUtils
#client, #id, included, #initialize, #inspect
Instance Attribute Details
#created_at ⇒ Time
Moment when user record was first created.
37 38 39 |
# File 'lib/calendly/models/routing_form_submission.rb', line 37 def created_at @created_at end |
#questions_and_answers ⇒ Array<Calendly::RoutingFormSubmissionQuestionAndAnswer>
All Routing Form Submission questions with answers.
49 50 51 |
# File 'lib/calendly/models/routing_form_submission.rb', line 49 def questions_and_answers @questions_and_answers end |
#result ⇒ Calendly::RoutingFormSubmissionEventTypeResult
Information about the event type Routing Form Submission result.
57 58 59 |
# File 'lib/calendly/models/routing_form_submission.rb', line 57 def result @result end |
#routing_form ⇒ Calendly::RoutingForm
The routing form that’s associated with the submission.
45 46 47 |
# File 'lib/calendly/models/routing_form_submission.rb', line 45 def routing_form @routing_form end |
#submitter ⇒ String?
The reference to the Invitee resource when routing form submission results in a scheduled meeting.
29 30 31 |
# File 'lib/calendly/models/routing_form_submission.rb', line 29 def submitter @submitter end |
#submitter_type ⇒ String?
Type of the respondent resource that submitted the form and scheduled a meeting.
33 34 35 |
# File 'lib/calendly/models/routing_form_submission.rb', line 33 def submitter_type @submitter_type end |
#tracking ⇒ Calendly::RoutingFormSubmissionTracking
All Routing Form Submission questions with answers.
53 54 55 |
# File 'lib/calendly/models/routing_form_submission.rb', line 53 def tracking @tracking end |
#updated_at ⇒ Time
Moment when user record was last updated.
41 42 43 |
# File 'lib/calendly/models/routing_form_submission.rb', line 41 def updated_at @updated_at end |
#uri ⇒ String
Canonical reference (unique identifier) for the routing form submission.
25 26 27 |
# File 'lib/calendly/models/routing_form_submission.rb', line 25 def uri @uri end |
#uuid ⇒ String
unique id of the RoutingFormSubmission object.
21 22 23 |
# File 'lib/calendly/models/routing_form_submission.rb', line 21 def uuid @uuid end |
Class Method Details
.association ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/calendly/models/routing_form_submission.rb', line 10 def self.association { routing_form: RoutingForm, questions_and_answers: RoutingFormSubmissionQuestionAndAnswer, tracking: RoutingFormSubmissionTracking, result: RoutingFormSubmissionEventTypeResult } end |
Instance Method Details
#fetch ⇒ Calendly::RoutingFormSubmission
Get Routing Form Submission associated with self.
66 67 68 |
# File 'lib/calendly/models/routing_form_submission.rb', line 66 def fetch client.routing_form_submission uuid end |