Sha256: c06d39c9b5ffc26fdefa9d3deaad31edd43ac763c10d51246b737fafbbc2dc42
Contents?: true
Size: 379 Bytes
Versions: 2
Compression:
Stored size: 379 Bytes
Contents
module Weather class Wind # the temperature, with wind chill factored in attr_reader :chill # the direction of the wind in degrees attr_reader :direction # the windspeed attr_reader :speed def initialize payload @chill = payload[:chill].to_i @direction = payload[:direction].to_i @speed = payload[:speed].to_i end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
weather-api-1.1.1 | lib/weather-api/wind.rb |
weather-api-1.1.0 | lib/weather-api/wind.rb |