Class: HoN::MatchStats

Inherits:
Stats
  • Object
show all
Defined in:
lib/hon/match.rb

Instance Method Summary collapse

Methods inherited from Stats

#[]

Constructor Details

#initialize(match_id) ⇒ MatchStats

Returns a new instance of MatchStats.



6
7
8
9
10
11
# File 'lib/hon/match.rb', line 6

def initialize match_id
  @match_id   = match_id
  @statistics = { server: {}, legion: { players: [] }, hellbourne: { players: [] } }

  retrieve_statistics
end

Instance Method Details

#hellbourneObject



25
26
27
# File 'lib/hon/match.rb', line 25

def hellbourne
  @statistics[:hellbourne]
end

#hellbourne_playersObject



29
30
31
# File 'lib/hon/match.rb', line 29

def hellbourne_players
  hellbourne[:players]
end

#legionObject



17
18
19
# File 'lib/hon/match.rb', line 17

def legion
  @statistics[:legion]
end

#legion_playersObject



21
22
23
# File 'lib/hon/match.rb', line 21

def legion_players
  legion[:players]
end

#serverObject



13
14
15
# File 'lib/hon/match.rb', line 13

def server
  @statistics[:server]
end