Class: Calendly::RoutingFormQuestion

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

Overview

Calendly’s routing form question model.

Constant Summary collapse

TIME_FIELDS =
%i[created_at updated_at].freeze

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 respondent’s option(s) for “select” or “radios” types of questions.

Returns:

  • (Array<String>)


27
28
29
# File 'lib/calendly/models/routing_form_question.rb', line 27

def answer_choices
  @answer_choices
end

#nameString

Question name (in human-readable format).

Returns:

  • (String)


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

def name
  @name
end

#requiredBoolean

true if an answer to the question is required for respondents to submit the routing form; false if not required.

Returns:

  • (Boolean)


23
24
25
# File 'lib/calendly/models/routing_form_question.rb', line 23

def required
  @required
end

#typeString

Question type: name, text input, email, phone, textarea input, dropdown list or radio button list.

Returns:

  • (String)


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

def type
  @type
end

#uuidString

Unique identifier for the routing form question.

Returns:

  • (String)


11
12
13
# File 'lib/calendly/models/routing_form_question.rb', line 11

def uuid
  @uuid
end