Class: Google::Apis::FormsV1::CreateItemRequest

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

Create an item in a form.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateItemRequest

Returns a new instance of CreateItemRequest.



244
245
246
# File 'lib/google/apis/forms_v1/classes.rb', line 244

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

Instance Attribute Details

#itemGoogle::Apis::FormsV1::Item

A single item of the form. kind defines which kind of item it is. Corresponds to the JSON property item



237
238
239
# File 'lib/google/apis/forms_v1/classes.rb', line 237

def item
  @item
end

#locationGoogle::Apis::FormsV1::Location

A specific location in a form. Corresponds to the JSON property location



242
243
244
# File 'lib/google/apis/forms_v1/classes.rb', line 242

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



249
250
251
252
# File 'lib/google/apis/forms_v1/classes.rb', line 249

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