Sha256: 8c26f8098e365229fc949b6e483f99cdcd2de749692d632c91c1fb714a6785d4
Contents?: true
Size: 503 Bytes
Versions: 21
Compression:
Stored size: 503 Bytes
Contents
module SportsDataApi module Ncaafb 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
21 entries across 21 versions & 1 rubygems