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.



1307
1308
1309
# File 'lib/google/apis/forms_v1/classes.rb', line 1307

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

Instance Attribute Details

#imageGoogle::Apis::FormsV1::Image

Data representing an image. Corresponds to the JSON property image



1300
1301
1302
# File 'lib/google/apis/forms_v1/classes.rb', line 1300

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



1305
1306
1307
# File 'lib/google/apis/forms_v1/classes.rb', line 1305

def question
  @question
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1312
1313
1314
1315
# File 'lib/google/apis/forms_v1/classes.rb', line 1312

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