Class: Google::Apis::PlusDomainsV1::Place::Position

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

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



2520
2521
2522
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2520

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#latitudeFloat

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

Returns:

  • (Float)


2513
2514
2515
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2513

def latitude
  @latitude
end

#longitudeFloat

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

Returns:

  • (Float)


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