Class: Google::Apis::FormsV1::Grid
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::Grid
- 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
-
#columns ⇒ Google::Apis::FormsV1::ChoiceQuestion
A radio/checkbox/dropdown question.
-
#shuffle_questions ⇒ Boolean
(also: #shuffle_questions?)
If
true
, the questions are randomly ordered.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Grid
constructor
A new instance of Grid.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#columns ⇒ Google::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_questions ⇒ Boolean 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
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 |