Exception: ActiveEntry::DecisionMakerMethodNotDefinedError
- Defined in:
- lib/active_entry/errors.rb
Instance Attribute Summary collapse
-
#decision_maker_method_name ⇒ Object
readonly
Returns the value of attribute decision_maker_method_name.
-
#policy_name ⇒ Object
readonly
Returns the value of attribute policy_name.
Instance Method Summary collapse
-
#initialize(policy_name, decision_maker_method_name) ⇒ DecisionMakerMethodNotDefinedError
constructor
A new instance of DecisionMakerMethodNotDefinedError.
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_name ⇒ Object (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_name ⇒ Object (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 |