Class: HoN::MatchStats
Instance Method Summary collapse
- #hellbourne ⇒ Object
- #hellbourne_players ⇒ Object
-
#initialize(match_id) ⇒ MatchStats
constructor
A new instance of MatchStats.
- #legion ⇒ Object
- #legion_players ⇒ Object
- #server ⇒ Object
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
#hellbourne ⇒ Object
25 26 27 |
# File 'lib/hon/match.rb', line 25 def hellbourne @statistics[:hellbourne] end |
#hellbourne_players ⇒ Object
29 30 31 |
# File 'lib/hon/match.rb', line 29 def hellbourne_players hellbourne[:players] end |
#legion ⇒ Object
17 18 19 |
# File 'lib/hon/match.rb', line 17 def legion @statistics[:legion] end |
#legion_players ⇒ Object
21 22 23 |
# File 'lib/hon/match.rb', line 21 def legion_players legion[:players] end |
#server ⇒ Object
13 14 15 |
# File 'lib/hon/match.rb', line 13 def server @statistics[:server] end |