Class: Google::Apis::PlusV1::Place::Position

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#latitudeFloat

The latitude of this position. Corresponds to the JSON property latitude

Returns:

  • (Float)


2035
2036
2037
# File 'generated/google/apis/plus_v1/classes.rb', line 2035

def latitude
  @latitude
end

#longitudeFloat

The longitude of this position. Corresponds to the JSON property longitude

Returns:

  • (Float)


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