Sha256: cd515aeb1934310cdc8fe0bb17bffa185e39fe2242f3799633245b5fc37e5582

Contents?: true

Size: 1.52 KB

Versions: 6

Compression:

Stored size: 1.52 KB

Contents

# frozen_string_literal: true

require 'calendly/models/model_utils'

module Calendly
  # Calendly's custom question model.
  class EventTypeCustomQuestion
    include ModelUtils

    # @return [String]
    # The custom question that the host created for the event type.
    attr_accessor :name

    # @return [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.
    attr_accessor :type

    # @return [Integer]
    # The numerical position of the question on the event booking page after the name and email address fields.
    attr_accessor :position

    # @return [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.
    attr_accessor :enabled

    # @return [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.
    attr_accessor :required

    # @return [Array<String>]
    # The invitee’s option(s) for single_select or multi_select type of responses.
    attr_accessor :answer_choices

    # @return [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.
    attr_accessor :include_other

  private

    def inspect_attributes
      super + %i[enabled position]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
calendly-0.8.3 lib/calendly/models/event_type_custom_question.rb
calendly-0.8.2 lib/calendly/models/event_type_custom_question.rb
calendly-0.8.1 lib/calendly/models/event_type_custom_question.rb
calendly-0.8.0 lib/calendly/models/event_type_custom_question.rb
calendly-0.7.0 lib/calendly/models/event_type_custom_question.rb
calendly-0.6.0 lib/calendly/models/event_type_custom_question.rb