Class: SecretCode
- Inherits:
-
Object
- Object
- 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.
11 12 13 14 |
# File 'lib/secret_code.rb', line 11 def initialize(value) @value = value validate! end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
7 8 9 |
# File 'lib/secret_code.rb', line 7 def value @value end |