Exception: Threatinator::Exceptions::InvalidAttributeError
- Inherits:
-
StandardError
- Object
- StandardError
- Threatinator::Exceptions::InvalidAttributeError
- Defined in:
- lib/threatinator/exceptions.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#got ⇒ Object
readonly
Returns the value of attribute got.
Instance Method Summary collapse
-
#initialize(attribute, got) ⇒ InvalidAttributeError
constructor
A new instance of InvalidAttributeError.
Constructor Details
#initialize(attribute, got) ⇒ InvalidAttributeError
Returns a new instance of InvalidAttributeError.
34 35 36 37 38 |
# File 'lib/threatinator/exceptions.rb', line 34 def initialize(attribute, got) @attribute = attribute @got = got super("Invalid value for attribute '#{attribute}'. Got " + got.inspect) end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
33 34 35 |
# File 'lib/threatinator/exceptions.rb', line 33 def attribute @attribute end |
#got ⇒ Object (readonly)
Returns the value of attribute got.
33 34 35 |
# File 'lib/threatinator/exceptions.rb', line 33 def got @got end |