Class: Google::Apis::CoordinateV1::Location

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

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_lineArray<String>

Address. Corresponds to the JSON property addressLine

Returns:

  • (Array<String>)


373
374
375
# File 'generated/google/apis/coordinate_v1/classes.rb', line 373

def address_line
  @address_line
end

#kindString

Identifies this object as a location. Corresponds to the JSON property kind

Returns:

  • (String)


378
379
380
# File 'generated/google/apis/coordinate_v1/classes.rb', line 378

def kind
  @kind
end

#latFloat

Latitude. Corresponds to the JSON property lat

Returns:

  • (Float)


383
384
385
# File 'generated/google/apis/coordinate_v1/classes.rb', line 383

def lat
  @lat
end

#lngFloat

Longitude. Corresponds to the JSON property lng

Returns:

  • (Float)


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