Class: Google::Apis::FormsV1::CreateItemResponse
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::CreateItemResponse
- 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
The result of creating an item.
Instance Attribute Summary collapse
-
#item_id ⇒ String
The ID of the created item.
-
#question_id ⇒ Array<String>
The ID of the question created as part of this item, for a question group it lists IDs of all the questions created for this item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateItemResponse
constructor
A new instance of CreateItemResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateItemResponse
Returns a new instance of CreateItemResponse.
270 271 272 |
# File 'lib/google/apis/forms_v1/classes.rb', line 270 def initialize(**args) update!(**args) end |
Instance Attribute Details
#item_id ⇒ String
The ID of the created item.
Corresponds to the JSON property itemId
262 263 264 |
# File 'lib/google/apis/forms_v1/classes.rb', line 262 def item_id @item_id end |
#question_id ⇒ Array<String>
The ID of the question created as part of this item, for a question group it
lists IDs of all the questions created for this item.
Corresponds to the JSON property questionId
268 269 270 |
# File 'lib/google/apis/forms_v1/classes.rb', line 268 def question_id @question_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
275 276 277 278 |
# File 'lib/google/apis/forms_v1/classes.rb', line 275 def update!(**args) @item_id = args[:item_id] if args.key?(:item_id) @question_id = args[:question_id] if args.key?(:question_id) end |