Class: App42::Game::Score

Inherits:
Object
  • Object
show all
Defined in:
lib/game/Game.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(game) ⇒ Score

This is a constructor that takes no parameter



33
34
35
# File 'lib/game/Game.rb', line 33

def initialize(game)
  game.scoreList.push(self)
end

Instance Attribute Details

#createdOnObject

Returns the value of attribute createdOn.



23
24
25
# File 'lib/game/Game.rb', line 23

def createdOn
  @createdOn
end

#rankObject

Returns the value of attribute rank.



23
24
25
# File 'lib/game/Game.rb', line 23

def rank
  @rank
end

#userNameObject

Returns the value of attribute userName.



23
24
25
# File 'lib/game/Game.rb', line 23

def userName
  @userName
end

#valueObject

Returns the value of attribute value.



23
24
25
# File 'lib/game/Game.rb', line 23

def value
  @value
end