Class: Google::Apis::FormsV1::CreateItemResponse

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

The result of creating an item.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idString

The ID of the created item. Corresponds to the JSON property itemId

Returns:

  • (String)


262
263
264
# File 'lib/google/apis/forms_v1/classes.rb', line 262

def item_id
  @item_id
end

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

Returns:

  • (Array<String>)


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