Class: Google::Apis::FormsV1::QuestionGroupItem

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

Defines a question that comprises multiple questions grouped together.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QuestionGroupItem

Returns a new instance of QuestionGroupItem.



1211
1212
1213
# File 'lib/google/apis/forms_v1/classes.rb', line 1211

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

Instance Attribute Details

#gridGoogle::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



1197
1198
1199
# File 'lib/google/apis/forms_v1/classes.rb', line 1197

def grid
  @grid
end

#imageGoogle::Apis::FormsV1::Image

Data representing an image. Corresponds to the JSON property image



1202
1203
1204
# File 'lib/google/apis/forms_v1/classes.rb', line 1202

def image
  @image
end

#questionsArray<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



1209
1210
1211
# File 'lib/google/apis/forms_v1/classes.rb', line 1209

def questions
  @questions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1216
1217
1218
1219
1220
# File 'lib/google/apis/forms_v1/classes.rb', line 1216

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