class Forecast::IO::Cache::App

Constants

LATITUDE
TIME

Private Instance Methods

actions() click to toggle source
# File lib/forecast_io/cache/app.rb, line 29
def actions
  {
    forecast:         "/forecast/:key/:latitude,:longitude",
    forecast_at_time: "/forecast/:key/:latitude,:longitude,:time"
  }
end
respond_as_json(code, body) click to toggle source
# File lib/forecast_io/cache/app.rb, line 25
def respond_as_json code, body
  [code, { "Content-Type" => "application/json" }, JSON.dump(body) ]
end