class Dota::API::Match::Side

Public Instance Methods

barracks_status() click to toggle source
# File lib/dota/api/match/side.rb, line 21
def barracks_status
  format_status raw["barracks_status"], :barracks
end
captain_id() click to toggle source
# File lib/dota/api/match/side.rb, line 25
def captain_id
  raw["captain"]
end
complete?() click to toggle source
# File lib/dota/api/match/side.rb, line 13
def complete?
  raw["team_complete"] == 1
end
logo_id() click to toggle source
# File lib/dota/api/match/side.rb, line 9
def logo_id
  raw["logo"]
end
name() click to toggle source
# File lib/dota/api/match/side.rb, line 5
def name
  raw["name"]
end
players() click to toggle source
# File lib/dota/api/match/side.rb, line 29
def players
  raw["players"].map do |raw_player|
    Player.new(raw_player)
  end
end
tower_status() click to toggle source
# File lib/dota/api/match/side.rb, line 17
def tower_status
  format_status raw["tower_status"], :towers
end