class SportsDataApi::Ncaafb::Weather

Attributes

condition[R]
humidity[R]
temperature[R]
wind_direction[R]
wind_speed[R]

Public Class Methods

new(weather_hash) click to toggle source
# File lib/sports_data_api/ncaafb/weather.rb, line 5
def initialize(weather_hash)
  if weather_hash
    @temperature = weather_hash['temperature']
    @condition = weather_hash['condition']
    @humidity = weather_hash['humidity']
    @wind_speed = weather_hash['wind']['speed']
    @wind_direction = weather_hash['wind']['direction']
  end
end