Class: OpsWorker::Layer
- Inherits:
-
Object
- Object
- OpsWorker::Layer
- Defined in:
- lib/ops_worker/layer.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(id, name, type, stack, opsworks_client) ⇒ Layer
constructor
A new instance of Layer.
- #to_s ⇒ Object
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/ops_worker/layer.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/ops_worker/layer.rb', line 3 def name @name end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
3 4 5 |
# File 'lib/ops_worker/layer.rb', line 3 def stack @stack end |
#type ⇒ Object (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_s ⇒ Object
13 14 15 |
# File 'lib/ops_worker/layer.rb', line 13 def to_s "#<OpsWorker::Layer #{@id}, #{@name}, stack: #{@stack.name}>" end |