class Dota::API::ScheduledMatch
Public Instance Methods
description()
click to toggle source
# File lib/dota/api/scheduled_match.rb, line 23 def description raw["comment"] end
final?()
click to toggle source
# File lib/dota/api/scheduled_match.rb, line 27 def final? raw["final"] end
game_id()
click to toggle source
# File lib/dota/api/scheduled_match.rb, line 8 def game_id raw["game_id"] end
league_id()
click to toggle source
# File lib/dota/api/scheduled_match.rb, line 4 def league_id raw["league_id"] end
starts_at()
click to toggle source
# File lib/dota/api/scheduled_match.rb, line 19 def starts_at Time.at(raw["starttime"]) end
teams()
click to toggle source
# File lib/dota/api/scheduled_match.rb, line 12 def teams raw["teams"].map do |raw_team| raw_team["name"] = raw_team.delete("team_name") Team.new(raw_team) end end