Class: Hotstat::Player

Inherits:
Object
  • Object
show all
Defined in:
lib/hotstat/player.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#mmr1Object

Returns the value of attribute mmr1.



3
4
5
# File 'lib/hotstat/player.rb', line 3

def mmr1
  @mmr1
end

#mmr2Object

Returns the value of attribute mmr2.



3
4
5
# File 'lib/hotstat/player.rb', line 3

def mmr2
  @mmr2
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/hotstat/player.rb', line 3

def name
  @name
end