Class: Google::Apis::FormsV1::Grid

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/forms_v1/classes.rb,
lib/google/apis/forms_v1/representations.rb,
lib/google/apis/forms_v1/representations.rb

Overview

A grid of choices (radio or check boxes) with each row constituting a separate question. Each row has the same choices, which are shown as the columns.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Grid

Returns a new instance of Grid.



759
760
761
# File 'lib/google/apis/forms_v1/classes.rb', line 759

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#columnsGoogle::Apis::FormsV1::ChoiceQuestion

A radio/checkbox/dropdown question. Corresponds to the JSON property columns



750
751
752
# File 'lib/google/apis/forms_v1/classes.rb', line 750

def columns
  @columns
end

#shuffle_questionsBoolean Also known as: shuffle_questions?

If true, the questions are randomly ordered. In other words, the rows appear in a different order for every respondent. Corresponds to the JSON property shuffleQuestions

Returns:

  • (Boolean)


756
757
758
# File 'lib/google/apis/forms_v1/classes.rb', line 756

def shuffle_questions
  @shuffle_questions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



764
765
766
767
# File 'lib/google/apis/forms_v1/classes.rb', line 764

def update!(**args)
  @columns = args[:columns] if args.key?(:columns)
  @shuffle_questions = args[:shuffle_questions] if args.key?(:shuffle_questions)
end