Module: Barometer
- Defined in:
- lib/barometer.rb,
lib/barometer/base.rb,
lib/barometer/data.rb,
lib/barometer/query.rb,
lib/barometer/utils.rb,
lib/barometer/version.rb,
lib/barometer/weather.rb,
lib/barometer/data/geo.rb,
lib/barometer/data/sun.rb,
lib/barometer/response.rb,
lib/barometer/data/zone.rb,
lib/barometer/utils/api.rb,
lib/barometer/utils/get.rb,
lib/barometer/query/base.rb,
lib/barometer/utils/post.rb,
lib/barometer/utils/time.rb,
lib/barometer/data/vector.rb,
lib/barometer/query/format.rb,
lib/barometer/data/distance.rb,
lib/barometer/data/location.rb,
lib/barometer/data/pressure.rb,
lib/barometer/query/service.rb,
lib/barometer/response/base.rb,
lib/barometer/utils/address.rb,
lib/barometer/utils/payload.rb,
lib/barometer/data/attribute.rb,
lib/barometer/query/converter.rb,
lib/barometer/weather_service.rb,
lib/barometer/data/coordinates.rb,
lib/barometer/data/temperature.rb,
lib/barometer/response/current.rb,
lib/barometer/utils/xml_reader.rb,
lib/barometer/utils/json_reader.rb,
lib/barometer/query/formats/base.rb,
lib/barometer/query/formats/icao.rb,
lib/barometer/data/attributes/sun.rb,
lib/barometer/response/prediction.rb,
lib/barometer/utils/config_reader.rb,
lib/barometer/data/attributes/time.rb,
lib/barometer/data/attributes/zone.rb,
lib/barometer/query/formats/woe_id.rb,
lib/barometer/data/attributes/float.rb,
lib/barometer/query/formats/geocode.rb,
lib/barometer/query/formats/unknown.rb,
lib/barometer/query/formats/zipcode.rb,
lib/barometer/utils/payload_request.rb,
lib/barometer/weather_services/base.rb,
lib/barometer/data/attributes/vector.rb,
lib/barometer/data/convertable_units.rb,
lib/barometer/utils/zone_code_lookup.rb,
lib/barometer/data/attributes/integer.rb,
lib/barometer/data/attributes/distance.rb,
lib/barometer/data/attributes/location.rb,
lib/barometer/data/attributes/pressure.rb,
lib/barometer/query/formats/postalcode.rb,
lib/barometer/query/formats/weather_id.rb,
lib/barometer/query/services/to_woe_id.rb,
lib/barometer/query/formats/coordinates.rb,
lib/barometer/weather_services/response.rb,
lib/barometer/query/converters/to_woe_id.rb,
lib/barometer/query/formats/ipv4_address.rb,
lib/barometer/data/attributes/temperature.rb,
lib/barometer/query/converters/to_geocode.rb,
lib/barometer/query/formats/short_zipcode.rb,
lib/barometer/query/services/to_weather_id.rb,
lib/barometer/query/services/yahoo_geocode.rb,
lib/barometer/utils/versioned_registration.rb,
lib/barometer/query/formats/noaa_station_id.rb,
lib/barometer/query/services/google_geocode.rb,
lib/barometer/query/converters/to_weather_id.rb,
lib/barometer/query/services/apis/weather_id.rb,
lib/barometer/query/services/from_weather_id.rb,
lib/barometer/query/services/noaa_station_id.rb,
lib/barometer/response/prediction_collection.rb,
lib/barometer/query/services/apis/noaa_station.rb,
lib/barometer/query/services/geonames_timezone.rb,
lib/barometer/weather_services/wunderground_v1.rb,
lib/barometer/query/services/apis/yahoo_weather.rb,
lib/barometer/query/services/apis/google_geocode.rb,
lib/barometer/weather_services/response/location.rb,
lib/barometer/weather_services/response/time_zone.rb,
lib/barometer/query/services/wunderground_timezone.rb,
lib/barometer/query/services/apis/geonames_timezone.rb,
lib/barometer/query/services/apis/yahoo_placefinder.rb,
lib/barometer/weather_services/wunderground_v1/query.rb,
lib/barometer/query/services/apis/wunderground_timezone.rb,
lib/barometer/query/converters/from_weather_id_to_geocode.rb,
lib/barometer/query/converters/from_geocode_to_coordinates.rb,
lib/barometer/weather_services/wunderground_v1/current_api.rb,
lib/barometer/weather_services/wunderground_v1/forecast_api.rb,
lib/barometer/weather_services/wunderground_v1/response/sun.rb,
lib/barometer/query/converters/from_short_zipcode_to_zipcode.rb,
lib/barometer/query/converters/from_woe_id_or_ipv4_to_geocode.rb,
lib/barometer/weather_services/wunderground_v1/current_response.rb,
lib/barometer/weather_services/wunderground_v1/response/station.rb,
lib/barometer/weather_services/wunderground_v1/forecast_response.rb,
lib/barometer/weather_services/wunderground_v1/response/location.rb,
lib/barometer/weather_services/wunderground_v1/response/timezone.rb,
lib/barometer/query/converters/from_coordinates_to_noaa_station_id.rb,
lib/barometer/weather_services/wunderground_v1/response/full_timezone.rb,
lib/barometer/weather_services/wunderground_v1/response/current_weather.rb,
lib/barometer/weather_services/wunderground_v1/response/forecasted_weather.rb
Defined Under Namespace
Modules: Data, Query, Response, Utils, WeatherService
Classes: Base, ConvertedQuery, OutOfSources, TimeoutError, Weather
Constant Summary
collapse
- VERSION =
'0.9.7'
- @@config =
{ 1 => {wunderground: {version: :v1}} }
- @@timeout =
15
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
12
|
# File 'lib/barometer.rb', line 12
def self.config; @@config; end
|
.config=(hash) ⇒ Object
13
|
# File 'lib/barometer.rb', line 13
def self.config=(hash); @@config = hash; end
|
.new(*args) ⇒ Object
19
20
21
|
# File 'lib/barometer.rb', line 19
def self.new(*args)
Barometer::Base.new(*args)
end
|
.timeout ⇒ Object
16
|
# File 'lib/barometer.rb', line 16
def self.timeout; @@timeout; end
|
.timeout=(value) ⇒ Object
17
|
# File 'lib/barometer.rb', line 17
def self.timeout=(value); @@timeout = value; end
|