class Interaktor::Error::OrganizerMissingPassedAttributeError

Attributes

attribute[R]

@return [Symbol]

Public Class Methods

new(interaktor, attribute) click to toggle source

@param next_interaktor [Class] @param attribute [Symbol]

Calls superclass method Interaktor::Error::AttributeError::new
# File lib/interaktor/error/organizer_missing_passed_attribute_error.rb, line 7
def initialize(interaktor, attribute)
  super(interaktor, [attribute])

  @attribute = attribute
end

Public Instance Methods

message() click to toggle source
# File lib/interaktor/error/organizer_missing_passed_attribute_error.rb, line 13
  def message
    <<~MESSAGE.strip.tr("\n", "")
      An organized #{interaktor} interaktor requires a '#{attribute}' input
      attribute, but none of the interaktors that come before it in the
      organizer list it as a success attribute, and the organizer does not list
      it as a required attribute.
    MESSAGE
  end