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.
988 989 990 |
# File 'lib/google/apis/forms_v1/classes.rb', line 988 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
986 987 988 |
# File 'lib/google/apis/forms_v1/classes.rb', line 986 def index @index end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
993 994 995 |
# File 'lib/google/apis/forms_v1/classes.rb', line 993 def update!(**args) @index = args[:index] if args.key?(:index) end |