Sha256: dd42d46ad5ac604dc230eacc01de3e0753d33303d608e8707f106bcc7ca1def9
Contents?: true
Size: 546 Bytes
Versions: 3
Compression:
Stored size: 546 Bytes
Contents
require "net/http" require 'json' module Forecastr class Radar class << self def find_by_city(city_name) new.find_by_city(city_name) end def find_by_coordinates(lat, lon) new.find_by_coordinates(lat, lon) end end def find_by_city(name) data = Forecastr::Client.search_by_city(name) Forecastr::Forecast.new(data) end def find_by_coordinates(lat, lon) data = Forecastr::Client.search_by_coordinates(lat, lon) Forecastr::Forecast.new(data) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
forecastr-0.1.5 | lib/forecastr/radar.rb |
forecastr-0.1.4 | lib/forecastr/radar.rb |
forecastr-0.1.3 | lib/forecastr/radar.rb |