class Glass::Location
A geographic location that can be associated with a timeline item.
Attributes
kind[R]
The type of resource. This is always mirror#location.
accuracy[RW]
The accuracy of the location fix in meters.
address[RW]
The full address of the location.
displayName[RW]
The name to be displayed. This may be a business name or a user-defined place, such as “Home”.
id[R]
The ID of the location.
latitude[RW]
The latitude, in degrees.
longitude[RW]
The longitude, in degrees.
timestamp[R]
The time at which this location was captured, formatted according to RFC 3339.
Public Class Methods
subscribe(mirror, call_back_url)
click to toggle source
# File lib/glass/locations/location.rb, line 14 def subscribe(mirror, call_back_url) s = Subscription.new() s.mirror=mirror s.callbackUrl=call_back_url s.collection=Subscription::LOCATION s.operation << UPDATE s.insert end