Class: App42::Game::Score
- Inherits:
 - 
      Object
      
        
- Object
 - App42::Game::Score
 
 
- Defined in:
 - lib/game/Game.rb
 
Instance Attribute Summary collapse
- 
  
    
      #createdOn  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute createdOn.
 - 
  
    
      #rank  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute rank.
 - 
  
    
      #userName  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute userName.
 - 
  
    
      #value  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute value.
 
Instance Method Summary collapse
- 
  
    
      #initialize(game)  ⇒ Score 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
This is a constructor that takes no parameter.
 
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
#createdOn ⇒ Object
Returns the value of attribute createdOn.
      23 24 25  | 
    
      # File 'lib/game/Game.rb', line 23 def createdOn @createdOn end  | 
  
#rank ⇒ Object
Returns the value of attribute rank.
      23 24 25  | 
    
      # File 'lib/game/Game.rb', line 23 def rank @rank end  | 
  
#userName ⇒ Object
Returns the value of attribute userName.
      23 24 25  | 
    
      # File 'lib/game/Game.rb', line 23 def userName @userName end  | 
  
#value ⇒ Object
Returns the value of attribute value.
      23 24 25  | 
    
      # File 'lib/game/Game.rb', line 23 def value @value end  |