Exception: DigestibleAttributes::Errors::DigestAlgorithmError
- Inherits:
-
StandardError
- Object
- StandardError
- DigestibleAttributes::Errors::DigestAlgorithmError
- Defined in:
- lib/digestible_attributes/errors.rb
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
readonly
Returns the value of attribute algorithm.
Instance Method Summary collapse
-
#initialize(algorithm) ⇒ DigestAlgorithmError
constructor
A new instance of DigestAlgorithmError.
Constructor Details
#initialize(algorithm) ⇒ DigestAlgorithmError
Returns a new instance of DigestAlgorithmError.
24 25 26 27 28 |
# File 'lib/digestible_attributes/errors.rb', line 24 def initialize(algorithm) @algorithm = algorithm super("invalid digest algorithm: '#{algorithm}'") end |
Instance Attribute Details
#algorithm ⇒ Object (readonly)
Returns the value of attribute algorithm.
30 31 32 |
# File 'lib/digestible_attributes/errors.rb', line 30 def algorithm @algorithm end |