Class: Calendly::EventTypeCustomQuestion
- Inherits:
-
Object
- Object
- Calendly::EventTypeCustomQuestion
- Includes:
- ModelUtils
- Defined in:
- lib/calendly/models/event_type_custom_question.rb
Overview
Calendly’s custom question model.
Constant Summary
Constants included from ModelUtils
Instance Attribute Summary collapse
-
#answer_choices ⇒ Array<String>
The invitee’s option(s) for single_select or multi_select type of responses.
-
#enabled ⇒ Boolean
true if the question created by the host is turned ON and visible on the event booking page; false if turned OFF and invisible on the event booking page.
-
#include_other ⇒ Boolean
true if the custom question lets invitees record a written response in addition to single-select or multiple-select type of responses; false if it doesn’t.
-
#name ⇒ String
The custom question that the host created for the event type.
-
#position ⇒ Integer
The numerical position of the question on the event booking page after the name and email address fields.
-
#required ⇒ Boolean
true if a response to the question created by the host is required for invitees to book the event type; false if not required.
-
#type ⇒ String
The type of response that the invitee provides to the custom question; can be one or multiple lines of text, a phone number, or single- or multiple-select.
Method Summary
Methods included from ModelUtils
#client, #id, included, #initialize, #inspect
Instance Attribute Details
#answer_choices ⇒ Array<String>
The invitee’s option(s) for single_select or multi_select type of responses.
33 34 35 |
# File 'lib/calendly/models/event_type_custom_question.rb', line 33 def answer_choices @answer_choices end |
#enabled ⇒ Boolean
true if the question created by the host is turned ON and visible on the event booking page; false if turned OFF and invisible on the event booking page.
24 25 26 |
# File 'lib/calendly/models/event_type_custom_question.rb', line 24 def enabled @enabled end |
#include_other ⇒ Boolean
true if the custom question lets invitees record a written response in addition to single-select or multiple-select type of responses; false if it doesn’t.
38 39 40 |
# File 'lib/calendly/models/event_type_custom_question.rb', line 38 def include_other @include_other end |
#name ⇒ String
The custom question that the host created for the event type.
10 11 12 |
# File 'lib/calendly/models/event_type_custom_question.rb', line 10 def name @name end |
#position ⇒ Integer
The numerical position of the question on the event booking page after the name and email address fields.
19 20 21 |
# File 'lib/calendly/models/event_type_custom_question.rb', line 19 def position @position end |
#required ⇒ Boolean
true if a response to the question created by the host is required for invitees to book the event type; false if not required.
29 30 31 |
# File 'lib/calendly/models/event_type_custom_question.rb', line 29 def required @required end |
#type ⇒ String
The type of response that the invitee provides to the custom question; can be one or multiple lines of text, a phone number, or single- or multiple-select.
15 16 17 |
# File 'lib/calendly/models/event_type_custom_question.rb', line 15 def type @type end |