Class: Google::Apis::MirrorV1::Location

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/mirror_v1/classes.rb,
generated/google/apis/mirror_v1/representations.rb,
generated/google/apis/mirror_v1/representations.rb

Overview

A geographic location that can be associated with a timeline item.

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) ⇒ Location

Returns a new instance of Location.


350
351
352
# File 'generated/google/apis/mirror_v1/classes.rb', line 350

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

Instance Attribute Details

#accuracyFloat

The accuracy of the location fix in meters. Corresponds to the JSON property accuracy

Returns:

  • (Float)

312
313
314
# File 'generated/google/apis/mirror_v1/classes.rb', line 312

def accuracy
  @accuracy
end

#addressString

The full address of the location. Corresponds to the JSON property address

Returns:

  • (String)

317
318
319
# File 'generated/google/apis/mirror_v1/classes.rb', line 317

def address
  @address
end

#display_nameString

The name to be displayed. This may be a business name or a user-defined place, such as "Home". Corresponds to the JSON property displayName

Returns:

  • (String)

323
324
325
# File 'generated/google/apis/mirror_v1/classes.rb', line 323

def display_name
  @display_name
end

#idString

The ID of the location. Corresponds to the JSON property id

Returns:

  • (String)

328
329
330
# File 'generated/google/apis/mirror_v1/classes.rb', line 328

def id
  @id
end

#kindString

The type of resource. This is always mirror#location. Corresponds to the JSON property kind

Returns:

  • (String)

333
334
335
# File 'generated/google/apis/mirror_v1/classes.rb', line 333

def kind
  @kind
end

#latitudeFloat

The latitude, in degrees. Corresponds to the JSON property latitude

Returns:

  • (Float)

338
339
340
# File 'generated/google/apis/mirror_v1/classes.rb', line 338

def latitude
  @latitude
end

#longitudeFloat

The longitude, in degrees. Corresponds to the JSON property longitude

Returns:

  • (Float)

343
344
345
# File 'generated/google/apis/mirror_v1/classes.rb', line 343

def longitude
  @longitude
end

#timestampDateTime

The time at which this location was captured, formatted according to RFC 3339. Corresponds to the JSON property timestamp

Returns:

  • (DateTime)

348
349
350
# File 'generated/google/apis/mirror_v1/classes.rb', line 348

def timestamp
  @timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


355
356
357
358
359
360
361
362
363
364
# File 'generated/google/apis/mirror_v1/classes.rb', line 355

def update!(**args)
  @accuracy = args[:accuracy] if args.key?(:accuracy)
  @address = args[:address] if args.key?(:address)
  @display_name = args[:display_name] if args.key?(:display_name)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @latitude = args[:latitude] if args.key?(:latitude)
  @longitude = args[:longitude] if args.key?(:longitude)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
end