Class: Hotstat::Player
- Inherits:
-
Object
- Object
- Hotstat::Player
- Defined in:
- lib/hotstat/player.rb
Instance Attribute Summary collapse
-
#mmr1 ⇒ Object
Returns the value of attribute mmr1.
-
#mmr2 ⇒ Object
Returns the value of attribute mmr2.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(args = {}) ⇒ Player
Returns a new instance of Player.
5 6 7 8 9 |
# File 'lib/hotstat/player.rb', line 5 def initialize args = {} args.each do |k,v| instance_variable_set("@#{k}", v) unless v.nil? end end |
Instance Attribute Details
#mmr1 ⇒ Object
Returns the value of attribute mmr1.
3 4 5 |
# File 'lib/hotstat/player.rb', line 3 def mmr1 @mmr1 end |
#mmr2 ⇒ Object
Returns the value of attribute mmr2.
3 4 5 |
# File 'lib/hotstat/player.rb', line 3 def mmr2 @mmr2 end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/hotstat/player.rb', line 3 def name @name end |