Class: CanTango::PermitEngine::Executor::Abstract
- Inherits:
-
Object
- Object
- CanTango::PermitEngine::Executor::Abstract
- Includes:
- Helpers::Debug
- Defined in:
- lib/cantango/permit_engine/executor/abstract.rb
Instance Attribute Summary collapse
-
#permit ⇒ Object
Returns the value of attribute permit.
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(permit) ⇒ Abstract
constructor
A new instance of Abstract.
- #permit? ⇒ Boolean
Methods included from Helpers::Debug
Constructor Details
#initialize(permit) ⇒ Abstract
Returns a new instance of Abstract.
9 10 11 |
# File 'lib/cantango/permit_engine/executor/abstract.rb', line 9 def initialize permit @permit = permit end |
Instance Attribute Details
#permit ⇒ Object
Returns the value of attribute permit.
7 8 9 |
# File 'lib/cantango/permit_engine/executor/abstract.rb', line 7 def permit @permit end |
Instance Method Details
#execute! ⇒ Object
17 18 19 |
# File 'lib/cantango/permit_engine/executor/abstract.rb', line 17 def execute! raise "Must be implemented by subclass" end |
#permit? ⇒ Boolean
13 14 15 |
# File 'lib/cantango/permit_engine/executor/abstract.rb', line 13 def permit? permit.permit? if permit end |