class Google::Apis::MirrorV1::Location

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

Attributes

accuracy[RW]

The accuracy of the location fix in meters. Corresponds to the JSON property `accuracy` @return [Float]

address[RW]

The full address of the location. Corresponds to the JSON property `address` @return [String]

display_name[RW]

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` @return [String]

id[RW]

The ID of the location. Corresponds to the JSON property `id` @return [String]

kind[RW]

The type of resource. This is always mirror#location. Corresponds to the JSON property `kind` @return [String]

latitude[RW]

The latitude, in degrees. Corresponds to the JSON property `latitude` @return [Float]

longitude[RW]

The longitude, in degrees. Corresponds to the JSON property `longitude` @return [Float]

timestamp[RW]

The time at which this location was captured, formatted according to RFC 3339. Corresponds to the JSON property `timestamp` @return [DateTime]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/mirror_v1/classes.rb, line 350
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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