Class: Player
- Inherits:
-
Object
- Object
- Player
- Defined in:
- lib/highscoreparse.rb
Instance Attribute Summary collapse
-
#instance_variables ⇒ Object
Returns the value of attribute instance_variables.
-
#score ⇒ Object
Returns the value of attribute score.
-
#user_name ⇒ Object
Returns the value of attribute user_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/highscoreparse.rb', line 5 def initialize(args) @instance_variables = args @user_name = args[:user] @score = args[:score] end |
Instance Attribute Details
#instance_variables ⇒ Object
Returns the value of attribute instance_variables.
4 5 6 |
# File 'lib/highscoreparse.rb', line 4 def instance_variables @instance_variables end |
#score ⇒ Object
Returns the value of attribute score.
4 5 6 |
# File 'lib/highscoreparse.rb', line 4 def score @score end |
#user_name ⇒ Object
Returns the value of attribute user_name.
4 5 6 |
# File 'lib/highscoreparse.rb', line 4 def user_name @user_name end |