Class: SecretCode

Inherits:
Object
  • Object
show all
Extended by:
Validation
Includes:
Valid
Defined in:
lib/secret_code.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Validation

validate

Methods included from Valid

#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

#valueObject

Returns the value of attribute value.



7
8
9
# File 'lib/secret_code.rb', line 7

def value
  @value
end