Class: Google::Apis::FormsV1::QuestionItem

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 form item containing a single question.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QuestionItem

Returns a new instance of QuestionItem.



1238
1239
1240
# File 'lib/google/apis/forms_v1/classes.rb', line 1238

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

Instance Attribute Details

#imageGoogle::Apis::FormsV1::Image

Data representing an image. Corresponds to the JSON property image



1231
1232
1233
# File 'lib/google/apis/forms_v1/classes.rb', line 1231

def image
  @image
end

#questionGoogle::Apis::FormsV1::Question

Any question. The specific type of question is known by its kind. Corresponds to the JSON property question



1236
1237
1238
# File 'lib/google/apis/forms_v1/classes.rb', line 1236

def question
  @question
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1243
1244
1245
1246
# File 'lib/google/apis/forms_v1/classes.rb', line 1243

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