Class: KnuckleCluster::Container
- Inherits:
-
Object
- Object
- KnuckleCluster::Container
- Defined in:
- lib/knuckle_cluster/container.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Instance Method Summary collapse
-
#initialize(index:, name:, task:) ⇒ Container
constructor
A new instance of Container.
Constructor Details
#initialize(index:, name:, task:) ⇒ Container
Returns a new instance of Container.
3 4 5 6 7 8 9 10 11 |
# File 'lib/knuckle_cluster/container.rb', line 3 def initialize( index:, name:, task: ) @index = index @name = name @task = task end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
13 14 15 |
# File 'lib/knuckle_cluster/container.rb', line 13 def index @index end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/knuckle_cluster/container.rb', line 13 def name @name end |
#task ⇒ Object (readonly)
Returns the value of attribute task.
13 14 15 |
# File 'lib/knuckle_cluster/container.rb', line 13 def task @task end |