Class: Google::Apis::PlusV1::Place::Position
- Inherits:
-
Object
- Object
- Google::Apis::PlusV1::Place::Position
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/plus_v1/classes.rb,
generated/google/apis/plus_v1/representations.rb,
generated/google/apis/plus_v1/representations.rb
Overview
The position of the place.
Instance Attribute Summary collapse
-
#latitude ⇒ Float
The latitude of this position.
-
#longitude ⇒ Float
The longitude of this position.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Position
constructor
A new instance of Position.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Position
Returns a new instance of Position.
2042 2043 2044 |
# File 'generated/google/apis/plus_v1/classes.rb', line 2042 def initialize(**args) update!(**args) end |
Instance Attribute Details
#latitude ⇒ Float
The latitude of this position.
Corresponds to the JSON property latitude
2035 2036 2037 |
# File 'generated/google/apis/plus_v1/classes.rb', line 2035 def latitude @latitude end |
#longitude ⇒ Float
The longitude of this position.
Corresponds to the JSON property longitude
2040 2041 2042 |
# File 'generated/google/apis/plus_v1/classes.rb', line 2040 def longitude @longitude end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2047 2048 2049 2050 |
# File 'generated/google/apis/plus_v1/classes.rb', line 2047 def update!(**args) @latitude = args[:latitude] if args.key?(:latitude) @longitude = args[:longitude] if args.key?(:longitude) end |