Class: Google::Apis::FormsV1::CreateItemRequest
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::CreateItemRequest
- 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
-
#item ⇒ Google::Apis::FormsV1::Item
A single item of the form.
-
#location ⇒ Google::Apis::FormsV1::Location
A specific location in a form.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateItemRequest
constructor
A new instance of CreateItemRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#item ⇒ Google::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 |
#location ⇒ Google::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 |