Class: KnuckleCluster::Container

Inherits:
Object
  • Object
show all
Defined in:
lib/knuckle_cluster/container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#indexObject (readonly)

Returns the value of attribute index.



13
14
15
# File 'lib/knuckle_cluster/container.rb', line 13

def index
  @index
end

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/knuckle_cluster/container.rb', line 13

def name
  @name
end

#taskObject (readonly)

Returns the value of attribute task.



13
14
15
# File 'lib/knuckle_cluster/container.rb', line 13

def task
  @task
end