Class: Interaktor::Error::OrganizerMissingPassedAttributeError
- Inherits:
-
AttributeError
- Object
- AttributeError
- Interaktor::Error::OrganizerMissingPassedAttributeError
- Defined in:
- lib/interaktor/error/organizer_missing_passed_attribute_error.rb
Instance Attribute Summary collapse
- #attribute ⇒ Symbol readonly
Instance Method Summary collapse
-
#initialize(interaktor, attribute) ⇒ OrganizerMissingPassedAttributeError
constructor
A new instance of OrganizerMissingPassedAttributeError.
- #message ⇒ Object
Constructor Details
#initialize(interaktor, attribute) ⇒ OrganizerMissingPassedAttributeError
Returns a new instance of OrganizerMissingPassedAttributeError.
7 8 9 10 11 |
# File 'lib/interaktor/error/organizer_missing_passed_attribute_error.rb', line 7 def initialize(interaktor, attribute) super(interaktor, [attribute]) @attribute = attribute end |
Instance Attribute Details
#attribute ⇒ Symbol (readonly)
3 4 5 |
# File 'lib/interaktor/error/organizer_missing_passed_attribute_error.rb', line 3 def attribute @attribute end |
Instance Method Details
#message ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/interaktor/error/organizer_missing_passed_attribute_error.rb', line 13 def " An organized \#{interaktor} interaktor requires a '\#{attribute}' input\n attribute, but none of the interaktors that come before it in the\n organizer list it as a success attribute, and the organizer does not list\n it as a required attribute.\n MESSAGE\nend\n".strip.tr("\n", " ") |