Class: OpsWorker::Layer

Inherits:
Object
  • Object
show all
Defined in:
lib/ops_worker/layer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, name, type, stack, opsworks_client) ⇒ Layer

Returns a new instance of Layer.



5
6
7
8
9
10
11
# File 'lib/ops_worker/layer.rb', line 5

def initialize(id, name, type, stack, opsworks_client)
  @id = id
  @name = name
  @stack = stack
  @type = type
  @opsworks_client = opsworks_client
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/ops_worker/layer.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/ops_worker/layer.rb', line 3

def name
  @name
end

#stackObject (readonly)

Returns the value of attribute stack.



3
4
5
# File 'lib/ops_worker/layer.rb', line 3

def stack
  @stack
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/ops_worker/layer.rb', line 3

def type
  @type
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/ops_worker/layer.rb', line 13

def to_s
  "#<OpsWorker::Layer #{@id}, #{@name}, stack: #{@stack.name}>"
end