Module: GeoClue
- Defined in:
- lib/geoclue.rb,
lib/geoclue/cache.rb,
lib/geoclue/client.rb,
lib/geoclue/config.rb,
lib/geoclue/version.rb,
lib/geoclue/reverse_geocoder.rb
Defined Under Namespace
Modules: ReverseGeocoder
Classes: Cache, Client, Config
Constant Summary
collapse
- VERSION =
"0.1.2"
Class Method Summary
collapse
Class Method Details
.address ⇒ Object
13
14
15
|
# File 'lib/geoclue.rb', line 13
def address
client.address
end
|
.client ⇒ Object
21
22
23
|
# File 'lib/geoclue.rb', line 21
def client
@client ||= Client.new
end
|
.config(&block) ⇒ Object
25
26
27
28
29
|
# File 'lib/geoclue.rb', line 25
def config(&block)
@config ||= Config.new
@config.evaluate(&block)
@config
end
|
.coordinates ⇒ Object
9
10
11
|
# File 'lib/geoclue.rb', line 9
def coordinates
client.coordinates
end
|
.full_location ⇒ Object
17
18
19
|
# File 'lib/geoclue.rb', line 17
def full_location
client.full_location
end
|