Class: PlayerStatSummary
- Inherits:
-
Object
- Object
- PlayerStatSummary
- Defined in:
- lib/sightstone/player_stats_summary.rb
Instance Attribute Summary collapse
-
#aggregatedStats ⇒ Object
Returns the value of attribute aggregatedStats.
-
#losses ⇒ Object
Returns the value of attribute losses.
-
#modifyDate ⇒ Object
Returns the value of attribute modifyDate.
-
#modifyDateStr ⇒ Object
Returns the value of attribute modifyDateStr.
-
#playerStatSummaryType ⇒ Object
Returns the value of attribute playerStatSummaryType.
-
#wins ⇒ Object
Returns the value of attribute wins.
Instance Method Summary collapse
-
#initialize(data) ⇒ PlayerStatSummary
constructor
A new instance of PlayerStatSummary.
Constructor Details
#initialize(data) ⇒ PlayerStatSummary
Returns a new instance of PlayerStatSummary.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/sightstone/player_stats_summary.rb', line 19 def initialize(data) @wins = data['wins'] @losses = data['losses'] @modifyDatStr = data['modifyDateStr'] @modifyDate = data['modifyDate'] @playerStatSummaryType = data['playerStatSummaryType'] @aggregatedStats = [] data['aggregatedStats'].each do |stat| @aggregatedStats << Stat.new(data) end end |
Instance Attribute Details
#aggregatedStats ⇒ Object
Returns the value of attribute aggregatedStats.
17 18 19 |
# File 'lib/sightstone/player_stats_summary.rb', line 17 def aggregatedStats @aggregatedStats end |
#losses ⇒ Object
Returns the value of attribute losses.
17 18 19 |
# File 'lib/sightstone/player_stats_summary.rb', line 17 def losses @losses end |
#modifyDate ⇒ Object
Returns the value of attribute modifyDate.
17 18 19 |
# File 'lib/sightstone/player_stats_summary.rb', line 17 def modifyDate @modifyDate end |
#modifyDateStr ⇒ Object
Returns the value of attribute modifyDateStr.
17 18 19 |
# File 'lib/sightstone/player_stats_summary.rb', line 17 def modifyDateStr @modifyDateStr end |
#playerStatSummaryType ⇒ Object
Returns the value of attribute playerStatSummaryType.
17 18 19 |
# File 'lib/sightstone/player_stats_summary.rb', line 17 def playerStatSummaryType @playerStatSummaryType end |
#wins ⇒ Object
Returns the value of attribute wins.
17 18 19 |
# File 'lib/sightstone/player_stats_summary.rb', line 17 def wins @wins end |