Class: Google::Apis::MirrorV1::Location
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::MirrorV1::Location
 
- 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
- 
  
    
      #accuracy  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The accuracy of the location fix in meters. 
- 
  
    
      #address  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The full address of the location. 
- 
  
    
      #display_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name to be displayed. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the location. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of resource. 
- 
  
    
      #latitude  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The latitude, in degrees. 
- 
  
    
      #longitude  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The longitude, in degrees. 
- 
  
    
      #timestamp  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time at which this location was captured, formatted according to RFC 3339. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Location 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Location. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#accuracy ⇒ Float
The accuracy of the location fix in meters.
Corresponds to the JSON property accuracy
| 312 313 314 | # File 'generated/google/apis/mirror_v1/classes.rb', line 312 def accuracy @accuracy end | 
#address ⇒ String
The full address of the location.
Corresponds to the JSON property address
| 317 318 319 | # File 'generated/google/apis/mirror_v1/classes.rb', line 317 def address @address end | 
#display_name ⇒ String
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
| 323 324 325 | # File 'generated/google/apis/mirror_v1/classes.rb', line 323 def display_name @display_name end | 
#id ⇒ String
The ID of the location.
Corresponds to the JSON property id
| 328 329 330 | # File 'generated/google/apis/mirror_v1/classes.rb', line 328 def id @id end | 
#kind ⇒ String
The type of resource. This is always mirror#location.
Corresponds to the JSON property kind
| 333 334 335 | # File 'generated/google/apis/mirror_v1/classes.rb', line 333 def kind @kind end | 
#latitude ⇒ Float
The latitude, in degrees.
Corresponds to the JSON property latitude
| 338 339 340 | # File 'generated/google/apis/mirror_v1/classes.rb', line 338 def latitude @latitude end | 
#longitude ⇒ Float
The longitude, in degrees.
Corresponds to the JSON property longitude
| 343 344 345 | # File 'generated/google/apis/mirror_v1/classes.rb', line 343 def longitude @longitude end | 
#timestamp ⇒ DateTime
The time at which this location was captured, formatted according to RFC 3339.
Corresponds to the JSON property timestamp
| 348 349 350 | # File 'generated/google/apis/mirror_v1/classes.rb', line 348 def @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 |