Class: Google::Apis::FormsV1::Location
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::Location
- 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 specific location in a form.
Instance Attribute Summary collapse
-
#index ⇒ Fixnum
The index of an item in the form.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Location
constructor
A new instance of Location.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Location
Returns a new instance of Location.
1005 1006 1007 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1005 def initialize(**args) update!(**args) end |
Instance Attribute Details
#index ⇒ Fixnum
The index of an item in the form. This must be in the range [0..N), where N
is the number of items in the form.
Corresponds to the JSON property index
1003 1004 1005 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1003 def index @index end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1010 1011 1012 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1010 def update!(**args) @index = args[:index] if args.key?(:index) end |