class FootballApi::MatchInfo
Attributes
attendance[RW]
id[RW]
referee[RW]
stadium_name[RW]
time[RW]
Public Class Methods
new(hash = {})
click to toggle source
# File lib/football_api/match_info.rb, line 6 def initialize(hash = {}) @id = hash[:id] @stadium_name = hash[:stadium][:name] if hash[:stadium] @attendance = hash[:attendance][:name] if hash[:attendance] @time = hash[:time][:name] if hash[:time] @referee = hash[:referee][:name] if hash[:referee] end