Class: Codebreaker::SecretCode
- Inherits:
-
Object
- Object
- Codebreaker::SecretCode
- Extended by:
- Validation
- Includes:
- Valid
- Defined in:
- lib/secret_code.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ SecretCode
constructor
A new instance of SecretCode.
Methods included from Validation
Methods included from Valid
Constructor Details
#initialize(value) ⇒ SecretCode
Returns a new instance of SecretCode.
12 13 14 15 |
# File 'lib/secret_code.rb', line 12 def initialize(value) @value = value validate! end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
8 9 10 |
# File 'lib/secret_code.rb', line 8 def value @value end |