Class: ChampionStat

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

Instance Attribute Summary (collapse)

Attributes inherited from Stat

#id, #name, #value

Instance Method Summary (collapse)

Constructor Details

- (ChampionStat) initialize(data)

Returns a new instance of ChampionStat



36
37
38
39
# File 'lib/sightstone/ranked_stats.rb', line 36

def initialize(data)
  super(data)
  @count = data['c']
end

Instance Attribute Details

- (Object) count

Returns the value of attribute count



34
35
36
# File 'lib/sightstone/ranked_stats.rb', line 34

def count
  @count
end