class Dota::API::LiveMatch::Side
Public Instance Methods
barracks_status()
click to toggle source
# File lib/dota/api/live_match/side.rb, line 21 def barracks_status format_status raw["barracks_state"], :barracks end
complete?()
click to toggle source
# File lib/dota/api/live_match/side.rb, line 13 def complete? raw["complete"] end
logo_id()
click to toggle source
# File lib/dota/api/live_match/side.rb, line 9 def logo_id raw["team_logo"] end
name()
click to toggle source
# File lib/dota/api/live_match/side.rb, line 5 def name raw["team_name"] end
players()
click to toggle source
# File lib/dota/api/live_match/side.rb, line 33 def players raw["players"].map do |raw_player| Player.new(raw_player) end end
score()
click to toggle source
# File lib/dota/api/live_match/side.rb, line 29 def score raw["score"] end
series_wins()
click to toggle source
# File lib/dota/api/live_match/side.rb, line 25 def series_wins raw["series_wins"] end
tower_status()
click to toggle source
# File lib/dota/api/live_match/side.rb, line 17 def tower_status format_status raw["tower_state"], :towers end