Class: Google::Apis::CoordinateV1::Location
- Inherits:
-
Object
- Object
- Google::Apis::CoordinateV1::Location
- Defined in:
- generated/google/apis/coordinate_v1/classes.rb,
generated/google/apis/coordinate_v1/representations.rb,
generated/google/apis/coordinate_v1/representations.rb
Overview
Location of a job.
Instance Attribute Summary collapse
-
#address_line ⇒ Array<String>
Address.
-
#kind ⇒ String
Identifies this object as a location.
-
#lat ⇒ Float
Latitude.
-
#lng ⇒ Float
Longitude.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Location
constructor
A new instance of Location.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Location
Returns a new instance of Location
390 391 392 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 390 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address_line ⇒ Array<String>
Address.
Corresponds to the JSON property addressLine
373 374 375 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 373 def address_line @address_line end |
#kind ⇒ String
Identifies this object as a location.
Corresponds to the JSON property kind
378 379 380 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 378 def kind @kind end |
#lat ⇒ Float
Latitude.
Corresponds to the JSON property lat
383 384 385 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 383 def lat @lat end |
#lng ⇒ Float
Longitude.
Corresponds to the JSON property lng
388 389 390 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 388 def lng @lng end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
395 396 397 398 399 400 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 395 def update!(**args) @address_line = args[:address_line] if args.key?(:address_line) @kind = args[:kind] if args.key?(:kind) @lat = args[:lat] if args.key?(:lat) @lng = args[:lng] if args.key?(:lng) end |