Class: Calendly::EventTypeCustomQuestion

Inherits:
Object
  • Object
show all
Includes:
ModelUtils
Defined in:
lib/calendly/models/event_type_custom_question.rb

Overview

Calendly’s custom question model.

Constant Summary

Constants included from ModelUtils

ModelUtils::UUID_FORMAT

Instance Attribute Summary collapse

Method Summary

Methods included from ModelUtils

#client, #id, included, #initialize, #inspect

Instance Attribute Details

#answer_choicesArray<String>

The invitee’s option(s) for single_select or multi_select type of responses.

Returns:

  • (Array<String>)


33
34
35
# File 'lib/calendly/models/event_type_custom_question.rb', line 33

def answer_choices
  @answer_choices
end

#enabledBoolean

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.

Returns:

  • (Boolean)


24
25
26
# File 'lib/calendly/models/event_type_custom_question.rb', line 24

def enabled
  @enabled
end

#include_otherBoolean

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.

Returns:

  • (Boolean)


38
39
40
# File 'lib/calendly/models/event_type_custom_question.rb', line 38

def include_other
  @include_other
end

#nameString

The custom question that the host created for the event type.

Returns:

  • (String)


10
11
12
# File 'lib/calendly/models/event_type_custom_question.rb', line 10

def name
  @name
end

#positionInteger

The numerical position of the question on the event booking page after the name and email address fields.

Returns:

  • (Integer)


19
20
21
# File 'lib/calendly/models/event_type_custom_question.rb', line 19

def position
  @position
end

#requiredBoolean

true if a response to the question created by the host is required for invitees to book the event type; false if not required.

Returns:

  • (Boolean)


29
30
31
# File 'lib/calendly/models/event_type_custom_question.rb', line 29

def required
  @required
end

#typeString

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.

Returns:

  • (String)


15
16
17
# File 'lib/calendly/models/event_type_custom_question.rb', line 15

def type
  @type
end