Class: Google::Apis::FormsV1::QuestionItem
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::QuestionItem
- 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
-
#image ⇒ Google::Apis::FormsV1::Image
Data representing an image.
-
#question ⇒ Google::Apis::FormsV1::Question
Any question.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QuestionItem
constructor
A new instance of QuestionItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QuestionItem
Returns a new instance of QuestionItem.
1237 1238 1239 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1237 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image ⇒ Google::Apis::FormsV1::Image
Data representing an image.
Corresponds to the JSON property image
1230 1231 1232 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1230 def image @image end |
#question ⇒ Google::Apis::FormsV1::Question
Any question. The specific type of question is known by its kind
.
Corresponds to the JSON property question
1235 1236 1237 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1235 def question @question end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1242 1243 1244 1245 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1242 def update!(**args) @image = args[:image] if args.key?(:image) @question = args[:question] if args.key?(:question) end |