Class: Player

Inherits:
Object
  • Object
show all
Defined in:
lib/highscoreparse.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/highscoreparse.rb', line 5

def initialize(args)
  @instance_variables = args
  @user_name = args[:user]
  @score = args[:score]
end

Instance Attribute Details

#instance_variablesObject

Returns the value of attribute instance_variables.



4
5
6
# File 'lib/highscoreparse.rb', line 4

def instance_variables
  @instance_variables
end

#scoreObject

Returns the value of attribute score.



4
5
6
# File 'lib/highscoreparse.rb', line 4

def score
  @score
end

#user_nameObject

Returns the value of attribute user_name.



4
5
6
# File 'lib/highscoreparse.rb', line 4

def user_name
  @user_name
end