Class: PlayerStatSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/sightstone/player_stats_summary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#aggregatedStatsObject

Returns the value of attribute aggregatedStats.



17
18
19
# File 'lib/sightstone/player_stats_summary.rb', line 17

def aggregatedStats
  @aggregatedStats
end

#lossesObject

Returns the value of attribute losses.



17
18
19
# File 'lib/sightstone/player_stats_summary.rb', line 17

def losses
  @losses
end

#modifyDateObject

Returns the value of attribute modifyDate.



17
18
19
# File 'lib/sightstone/player_stats_summary.rb', line 17

def modifyDate
  @modifyDate
end

#modifyDateStrObject

Returns the value of attribute modifyDateStr.



17
18
19
# File 'lib/sightstone/player_stats_summary.rb', line 17

def modifyDateStr
  @modifyDateStr
end

#playerStatSummaryTypeObject

Returns the value of attribute playerStatSummaryType.



17
18
19
# File 'lib/sightstone/player_stats_summary.rb', line 17

def playerStatSummaryType
  @playerStatSummaryType
end

#winsObject

Returns the value of attribute wins.



17
18
19
# File 'lib/sightstone/player_stats_summary.rb', line 17

def wins
  @wins
end