Class: Nayati::OperationImplementerBase
- Inherits:
-
Object
- Object
- Nayati::OperationImplementerBase
- Defined in:
- app/models/nayati/operation_implementer_base.rb
Instance Attribute Summary collapse
-
#operation_context ⇒ Object
Returns the value of attribute operation_context.
Instance Method Summary collapse
-
#initialize(operation_context) ⇒ OperationImplementerBase
constructor
A new instance of OperationImplementerBase.
- #perform ⇒ Object
- #perform_failure ⇒ Object
- #to_fail? ⇒ Boolean
Constructor Details
#initialize(operation_context) ⇒ OperationImplementerBase
Returns a new instance of OperationImplementerBase.
4 5 6 |
# File 'app/models/nayati/operation_implementer_base.rb', line 4 def initialize(operation_context) @operation_context = operation_context end |
Instance Attribute Details
#operation_context ⇒ Object
Returns the value of attribute operation_context.
3 4 5 |
# File 'app/models/nayati/operation_implementer_base.rb', line 3 def operation_context @operation_context end |
Instance Method Details
#perform ⇒ Object
17 18 19 |
# File 'app/models/nayati/operation_implementer_base.rb', line 17 def perform puts "#{__callee__} called on #{self.class.name}" end |
#perform_failure ⇒ Object
13 14 15 |
# File 'app/models/nayati/operation_implementer_base.rb', line 13 def perform_failure puts "#{__callee__} called on #{self.class.name}" end |
#to_fail? ⇒ Boolean
8 9 10 11 |
# File 'app/models/nayati/operation_implementer_base.rb', line 8 def to_fail? puts "#{__callee__} called on #{self.class.name}" false end |