Sha256: 7bd301e684d6be7cc7405e7c32eb01d31a531659ba18a51b0f71d96cd055cebe

Contents?: true

Size: 1.86 KB

Versions: 14

Compression:

Stored size: 1.86 KB

Contents

# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module StackOne
  module Shared
  

    class Question < ::StackOne::Utils::FieldAugmented
      extend T::Sig

      # Unique identifier
      field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }

      field :multiple_choice_answers, T.nilable(T::Array[::StackOne::Shared::QuestionMultipleChoiceAnswers]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('multiple_choice_answers') } }

      field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
      # Provider's unique identifier
      field :remote_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }

      field :required, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('required') } }

      field :text, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('text') } }

      field :type, T.nilable(::StackOne::Shared::QuestionType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }


      sig { params(id: T.nilable(::String), multiple_choice_answers: T.nilable(T::Array[::StackOne::Shared::QuestionMultipleChoiceAnswers]), name: T.nilable(::String), remote_id: T.nilable(::String), required: T.nilable(T::Boolean), text: T.nilable(::String), type: T.nilable(::StackOne::Shared::QuestionType)).void }
      def initialize(id: nil, multiple_choice_answers: nil, name: nil, remote_id: nil, required: nil, text: nil, type: nil)
        @id = id
        @multiple_choice_answers = multiple_choice_answers
        @name = name
        @remote_id = remote_id
        @required = required
        @text = text
        @type = type
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
stackone_client-0.2.29 lib/stack_one/models/shared/question.rb
stackone_client-0.2.28 lib/stack_one/models/shared/question.rb
stackone_client-0.2.27 lib/stack_one/models/shared/question.rb
stackone_client-0.2.26 lib/stack_one/models/shared/question.rb
stackone_client-0.2.18 lib/stack_one/models/shared/question.rb
stackone_client-0.2.17 lib/stack_one/models/shared/question.rb
stackone_client-0.2.16 lib/stack_one/models/shared/question.rb
stackone_client-0.2.15 lib/stack_one/models/shared/question.rb
stackone_client-0.2.14 lib/stack_one/models/shared/question.rb
stackone_client-0.2.13 lib/stack_one/models/shared/question.rb
stackone_client-0.2.12 lib/stack_one/models/shared/question.rb
stackone_client-0.2.11 lib/stack_one/models/shared/question.rb
stackone_client-0.2.10 lib/stack_one/models/shared/question.rb
stackone_client-0.2.9 lib/stack_one/models/shared/question.rb