Class: Starcraft2::Profile::Stats
- Inherits:
-
Object
- Object
- Starcraft2::Profile::Stats
- Defined in:
- lib/starcraft2/profile/stats.rb
Instance Attribute Summary collapse
-
#games ⇒ Object
Returns the value of attribute games.
-
#type ⇒ Object
Returns the value of attribute type.
-
#wins ⇒ Object
Returns the value of attribute wins.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Stats
constructor
A new instance of Stats.
Constructor Details
Instance Attribute Details
#games ⇒ Object
Returns the value of attribute games.
4 5 6 |
# File 'lib/starcraft2/profile/stats.rb', line 4 def games @games end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/starcraft2/profile/stats.rb', line 4 def type @type end |
#wins ⇒ Object
Returns the value of attribute wins.
4 5 6 |
# File 'lib/starcraft2/profile/stats.rb', line 4 def wins @wins end |
Class Method Details
.build(stats) ⇒ Object
10 11 12 13 14 |
# File 'lib/starcraft2/profile/stats.rb', line 10 def self.build(stats) stats.map do |s| new(s) end end |