Sha256: fea0aa39bb850395035c5ef9cd69c495e3f6bba3ce0dd780abee8e978bd60547

Contents?: true

Size: 500 Bytes

Versions: 19

Compression:

Stored size: 500 Bytes

Contents

module SportsDataApi
  module Nfl
    class Weather
      attr_reader :temperature, :condition, :humidity, :wind_speed, :wind_direction
      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
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
sports_data_api-0.14.1 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.14.0 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.13.0 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.12.1 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.12.0 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.11.6 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.11.5 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.11.3 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.11.2 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.11.1 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.11.0 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.10.1 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.10.0 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.9.2 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.2.4 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.2.3 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.2.2 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.2.1 lib/sports_data_api/nfl/weather.rb
sports_data_api-0.2.0 lib/sports_data_api/nfl/weather.rb