Class: CleanActions::ActionFailure
- Inherits:
-
ActiveRecord::Rollback
- Object
- ActiveRecord::Rollback
- CleanActions::ActionFailure
- Defined in:
- lib/clean_actions/action_failure.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(reason) ⇒ ActionFailure
constructor
A new instance of ActionFailure.
Constructor Details
#initialize(reason) ⇒ ActionFailure
Returns a new instance of ActionFailure.
5 6 7 8 |
# File 'lib/clean_actions/action_failure.rb', line 5 def initialize(reason) @reason = reason super end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
3 4 5 |
# File 'lib/clean_actions/action_failure.rb', line 3 def reason @reason end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 |
# File 'lib/clean_actions/action_failure.rb', line 10 def ==(other) reason == other.reason end |