Class: Panoramix::Tasks::Action
- Inherits:
-
Object
- Object
- Panoramix::Tasks::Action
- Defined in:
- lib/panoramix/tasks/actions.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#order_class ⇒ Object
readonly
Returns the value of attribute order_class.
-
#silent ⇒ Object
readonly
Returns the value of attribute silent.
-
#tasks ⇒ Object
readonly
Returns the value of attribute tasks.
Instance Method Summary collapse
- #addTask(name, instance_type) ⇒ Object
-
#initialize(action_name, silent, order_class) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(action_name, silent, order_class) ⇒ Action
Returns a new instance of Action.
10 11 12 13 14 15 |
# File 'lib/panoramix/tasks/actions.rb', line 10 def initialize(action_name, silent, order_class) @name = action_name @silent = silent @order_class = order_class @tasks = [] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/panoramix/tasks/actions.rb', line 5 def name @name end |
#order_class ⇒ Object (readonly)
Returns the value of attribute order_class.
7 8 9 |
# File 'lib/panoramix/tasks/actions.rb', line 7 def order_class @order_class end |
#silent ⇒ Object (readonly)
Returns the value of attribute silent.
6 7 8 |
# File 'lib/panoramix/tasks/actions.rb', line 6 def silent @silent end |
#tasks ⇒ Object (readonly)
Returns the value of attribute tasks.
8 9 10 |
# File 'lib/panoramix/tasks/actions.rb', line 8 def tasks @tasks end |
Instance Method Details
#addTask(name, instance_type) ⇒ Object
17 18 19 |
# File 'lib/panoramix/tasks/actions.rb', line 17 def addTask(name, instance_type) @tasks.push Hash[:name => name, :instance_type => instance_type] end |