Class: Codebreaker::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.



12
13
14
15
# File 'lib/secret_code.rb', line 12

def initialize(value)
  @value = value
  validate!
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



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

def value
  @value
end