Class: WorkflowKit::Brick
- Inherits:
-
Object
- Object
- WorkflowKit::Brick
- Defined in:
- app/models/workflow_kit/brick.rb
Constant Summary collapse
- @@descendants =
[]
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.all ⇒ Object
20 21 22 |
# File 'app/models/workflow_kit/brick.rb', line 20 def self.all @@descendants end |
.find_by_name(brick_name) ⇒ Object
24 25 26 27 |
# File 'app/models/workflow_kit/brick.rb', line 24 def self.find_by_name( brick_name ) class_name = "WorkflowKit::#{brick_name}" if brick_name return class_name.constantize.new end |
.inherited(descendant_class) ⇒ Object
6 7 8 |
# File 'app/models/workflow_kit/brick.rb', line 6 def self.inherited( descendant_class ) @@descendants << descendant_class end |
Instance Method Details
#description ⇒ Object
14 15 |
# File 'app/models/workflow_kit/brick.rb', line 14 def description end |
#execute(params) ⇒ Object
17 18 |
# File 'app/models/workflow_kit/brick.rb', line 17 def execute( params ) end |
#name ⇒ Object
10 11 12 |
# File 'app/models/workflow_kit/brick.rb', line 10 def name self.class.name end |