Exception: Optout::OptionError
- Inherits:
-
StandardError
- Object
- StandardError
- Optout::OptionError
- Defined in:
- lib/optout.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key, message) ⇒ OptionError
constructor
A new instance of OptionError.
Constructor Details
#initialize(key, message) ⇒ OptionError
Returns a new instance of OptionError.
9 10 11 12 |
# File 'lib/optout.rb', line 9 def initialize(key, ) super() @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
8 9 10 |
# File 'lib/optout.rb', line 8 def key @key end |