Class: Google::Apis::PlusDomainsV1::Place::Position
- Inherits:
-
Object
- Object
- Google::Apis::PlusDomainsV1::Place::Position
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/plus_domains_v1/classes.rb,
generated/google/apis/plus_domains_v1/representations.rb,
generated/google/apis/plus_domains_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.
2520 2521 2522 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2520 def initialize(**args) update!(**args) end |
Instance Attribute Details
#latitude ⇒ Float
The latitude of this position.
Corresponds to the JSON property latitude
2513 2514 2515 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2513 def latitude @latitude end |
#longitude ⇒ Float
The longitude of this position.
Corresponds to the JSON property longitude
2518 2519 2520 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2518 def longitude @longitude end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2525 2526 2527 2528 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2525 def update!(**args) @latitude = args[:latitude] if args.key?(:latitude) @longitude = args[:longitude] if args.key?(:longitude) end |