Class: Barometer::Query::Service::WundergroundTimezone
- Inherits:
-
Object
- Object
- Barometer::Query::Service::WundergroundTimezone
- Defined in:
- lib/barometer/query/services/wunderground_timezone.rb,
lib/barometer/query/services/apis/wunderground_timezone.rb
Defined Under Namespace
Classes: Api
Class Method Summary collapse
Class Method Details
.fetch(latitude, longitude) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/barometer/query/services/wunderground_timezone.rb', line 7 def self.fetch(latitude, longitude) return unless latitude && longitude api = WundergroundTimezone::Api.new(latitude, longitude) payload = api.get Data::Zone.new( payload.fetch('date', 'tz_long') ) end |