Class: EpaUvIndex::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/epa_uv_index.rb

Constant Summary collapse

HOURLY_BASE_URL =
"http://iaspub.epa.gov/enviro/efservice/getEnvirofactsUVHOURLY"
DAILY_BASE_URL =
"http://iaspub.epa.gov/enviro/efservice/getEnvirofactsUVDAILY"

Class Method Summary collapse

Class Method Details

.daily_for(params) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/epa_uv_index.rb', line 19

def self.daily_for(params)
  begin
    do_request(DAILY_BASE_URL, params)
  rescue Exception => e
    raise e
  end
end

.hourly_for(params) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/epa_uv_index.rb', line 11

def self.hourly_for(params)
  begin
    do_request(HOURLY_BASE_URL, params)
  rescue Exception => e
    raise e
  end
end