Class: Google::Apis::FormsV1::QuestionGroupItem
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::QuestionGroupItem
- 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
Defines a question that comprises multiple questions grouped together.
Instance Attribute Summary collapse
-
#grid ⇒ Google::Apis::FormsV1::Grid
A grid of choices (radio or check boxes) with each row constituting a separate question.
-
#image ⇒ Google::Apis::FormsV1::Image
Data representing an image.
-
#questions ⇒ Array<Google::Apis::FormsV1::Question>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QuestionGroupItem
constructor
A new instance of QuestionGroupItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QuestionGroupItem
Returns a new instance of QuestionGroupItem.
1212 1213 1214 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1212 def initialize(**args) update!(**args) end |
Instance Attribute Details
#grid ⇒ Google::Apis::FormsV1::Grid
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.
Corresponds to the JSON property grid
1198 1199 1200 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1198 def grid @grid end |
#image ⇒ Google::Apis::FormsV1::Image
Data representing an image.
Corresponds to the JSON property image
1203 1204 1205 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1203 def image @image end |
#questions ⇒ Array<Google::Apis::FormsV1::Question>
Required. A list of questions that belong in this question group. A question
must only belong to one group. The kind of the group may affect what types
of questions are allowed.
Corresponds to the JSON property questions
1210 1211 1212 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1210 def questions @questions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1217 1218 1219 1220 1221 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1217 def update!(**args) @grid = args[:grid] if args.key?(:grid) @image = args[:image] if args.key?(:image) @questions = args[:questions] if args.key?(:questions) end |