Module: Sunwatch
- Defined in:
- lib/sunwatch/client.rb,
lib/sunwatch/errors.rb,
lib/sunwatch/version.rb,
lib/sunwatch/response.rb,
lib/sunwatch/sunwatch.rb
Defined Under Namespace
Classes: Client, ConfigurationError, Response, UnavailableError
Constant Summary
collapse
- VERSION =
'0.0.1'
Class Method Summary
collapse
Class Method Details
.daily_uv_info_for(opts = {}) ⇒ Object
2
3
4
5
6
7
|
# File 'lib/sunwatch/sunwatch.rb', line 2
def self.daily_uv_info_for(opts = {})
validate_opts!(opts)
opts[:zipcode] = opts[:zipcode].to_s if opts[:zipcode] opts[:timewindow] = :daily
Sunwatch::Client.uv_info_for(opts)
end
|
.hourly_uv_info_for(opts = {}) ⇒ Object
9
10
11
12
13
14
|
# File 'lib/sunwatch/sunwatch.rb', line 9
def self.hourly_uv_info_for(opts = {})
validate_opts!(opts)
opts[:zipcode] = opts[:zipcode].to_s if opts[:zipcode] opts[:timewindow] = :hourly
Sunwatch::Client.uv_info_for(opts)
end
|