Class: Codebreaker::Score
- Inherits:
-
Struct
- Object
- Struct
- Codebreaker::Score
- Defined in:
- lib/codebreaker/score.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#level ⇒ Object
Returns the value of attribute level.
-
#player_name ⇒ Object
Returns the value of attribute player_name.
-
#score ⇒ Object
Returns the value of attribute score.
-
#winner ⇒ Object
Returns the value of attribute winner.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Score
constructor
A new instance of Score.
Constructor Details
#initialize {|_self| ... } ⇒ Score
Returns a new instance of Score.
3 4 5 |
# File 'lib/codebreaker/score.rb', line 3 def initialize yield self if block_given? end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date
2 3 4 |
# File 'lib/codebreaker/score.rb', line 2 def date @date end |
#level ⇒ Object
Returns the value of attribute level
2 3 4 |
# File 'lib/codebreaker/score.rb', line 2 def level @level end |
#player_name ⇒ Object
Returns the value of attribute player_name
2 3 4 |
# File 'lib/codebreaker/score.rb', line 2 def player_name @player_name end |
#score ⇒ Object
Returns the value of attribute score
2 3 4 |
# File 'lib/codebreaker/score.rb', line 2 def score @score end |
#winner ⇒ Object
Returns the value of attribute winner
2 3 4 |
# File 'lib/codebreaker/score.rb', line 2 def winner @winner end |