Class: Google::Apis::FormsV1::Location

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

A specific location in a form.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#indexFixnum

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

Returns:

  • (Fixnum)


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