Exception: ActiveEntry::DecisionMakerMethodNotDefinedError

Inherits:
Error
  • Object
show all
Defined in:
lib/active_entry/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policy_name, decision_maker_method_name) ⇒ DecisionMakerMethodNotDefinedError

Returns a new instance of DecisionMakerMethodNotDefinedError.



57
58
59
60
61
62
63
# File 'lib/active_entry/errors.rb', line 57

def initialize policy_name, decision_maker_method_name
  @policy_name = policy_name
  @decision_maker_method_name = decision_maker_method_name
  @message = "Decision maker #{policy_name}##{decision_maker_method_name} is not defined."

  super @message
end

Instance Attribute Details

#decision_maker_method_nameObject (readonly)

Returns the value of attribute decision_maker_method_name.



55
56
57
# File 'lib/active_entry/errors.rb', line 55

def decision_maker_method_name
  @decision_maker_method_name
end

#policy_nameObject (readonly)

Returns the value of attribute policy_name.



55
56
57
# File 'lib/active_entry/errors.rb', line 55

def policy_name
  @policy_name
end