class Dota::API::Match::Draft

Public Instance Methods

hero() click to toggle source
# File lib/dota/api/match/draft.rb, line 17
def hero
  Hero.new(raw["hero_id"])
end
order() click to toggle source
# File lib/dota/api/match/draft.rb, line 5
def order
  raw["order"] + 1
end
pick?() click to toggle source
# File lib/dota/api/match/draft.rb, line 9
def pick?
  raw["is_pick"]
end
team() click to toggle source
# File lib/dota/api/match/draft.rb, line 13
def team
  raw["team"] == 0 ? :radiant : :dire
end