Sha256: 1cd12bba471de323e2a0cab31c13a3a11cf3f2ab1de1aa0729dbceec6ccf5856
Contents?: true
Size: 867 Bytes
Versions: 5
Compression:
Stored size: 867 Bytes
Contents
module Barometer module WeatherService class WeatherBug class Response class Station < WeatherService::Response::Location private def id payload.fetch('station_id') end def name payload.fetch('station') end def city payload.using(/^([\w ]*?),/).fetch('city_state') end def state_code payload.using(/^[\w ^,]*?,([\w ^,]*)/).fetch('city_state') end def country payload.fetch('country') end def zip_code payload.fetch('city_state', '@zipcode') end def latitude payload.fetch('latitude') end def longitude payload.fetch('longitude') end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems