Exception: Optout::OptionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/optout.rb

Direct Known Subclasses

OptionInvalid, OptionRequired, OptionUnknown

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  super(message)
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



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

def key
  @key
end