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

- (PlayerStatSummary) initialize(data)

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

- (Object) aggregatedStats

Returns the value of attribute aggregatedStats



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

def aggregatedStats
  @aggregatedStats
end

- (Object) losses

Returns the value of attribute losses



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

def losses
  @losses
end

- (Object) modifyDate

Returns the value of attribute modifyDate



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

def modifyDate
  @modifyDate
end

- (Object) modifyDateStr

Returns the value of attribute modifyDateStr



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

def modifyDateStr
  @modifyDateStr
end

- (Object) playerStatSummaryType

Returns the value of attribute playerStatSummaryType



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

def playerStatSummaryType
  @playerStatSummaryType
end

- (Object) wins

Returns the value of attribute wins



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

def wins
  @wins
end