Sha256: 40c63a0380350938fa1f441f99893b9d4bfb8cef0535f767cac2835fbb8007f6

Contents?: true

Size: 312 Bytes

Versions: 11

Compression:

Stored size: 312 Bytes

Contents

class YahooWeather::Units
  FAHRENHEIT = 'f'
  CELSIUS = 'c'

  attr_reader :temperature, :distance, :pressure, :speed

  def initialize(payload)
    @temperature = payload['temperature']
    @distance    = payload['distance']
    @pressure    = payload['pressure']
    @speed       = payload['speed']
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
yahoo_weather-1.2.0 lib/yahoo_weather/units.rb
yahoo_weather-1.1.1 lib/yahoo_weather/units.rb
yahoo_weather-1.1.0 lib/yahoo_weather/units.rb
yahoo_weather-1.0.7 lib/yahoo_weather/units.rb
yahoo_weather-1.0.6 lib/yahoo_weather/units.rb
yahoo_weather-1.0.5 lib/yahoo_weather/units.rb
yahoo_weather-1.0.4 lib/yahoo_weather/units.rb
yahoo_weather-1.0.3 lib/yahoo_weather/units.rb
yahoo_weather-1.0.2 lib/yahoo_weather/units.rb
yahoo_weather-1.0.1 lib/yahoo_weather/units.rb
yahoo_weather-1.0.0 lib/yahoo_weather/units.rb