Class: Interaktor::Error::AttributeError
- Inherits:
-
Base
- Object
- Base
- Interaktor::Error::AttributeError
- Defined in:
- lib/interaktor/error/attribute_error.rb
Direct Known Subclasses
MissingExplicitSuccessError, OrganizerMissingPassedAttributeError, OrganizerSuccessAttributeMissingError, UnknownAttributeError
Instance Attribute Summary collapse
- #attributes ⇒ Array<Symbol> readonly
Instance Method Summary collapse
-
#initialize(interaktor, attributes) ⇒ AttributeError
constructor
A new instance of AttributeError.
- #message ⇒ String abstract
Constructor Details
#initialize(interaktor, attributes) ⇒ AttributeError
Returns a new instance of AttributeError.
7 8 9 10 11 |
# File 'lib/interaktor/error/attribute_error.rb', line 7 def initialize(interaktor, attributes) super(interaktor) @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Array<Symbol> (readonly)
3 4 5 |
# File 'lib/interaktor/error/attribute_error.rb', line 3 def attributes @attributes end |
Instance Method Details
#message ⇒ String
This method is abstract.
15 16 17 |
# File 'lib/interaktor/error/attribute_error.rb', line 15 def raise NoMethodError end |