Class: Cartography::Cluster::Site::ServerGroup::LaunchTemplate
- Inherits:
-
Object
- Object
- Cartography::Cluster::Site::ServerGroup::LaunchTemplate
- Defined in:
- lib/cartography/cluster.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#image_id ⇒ Object
readonly
Returns the value of attribute image_id.
-
#instance_type ⇒ Object
readonly
Returns the value of attribute instance_type.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ LaunchTemplate
constructor
A new instance of LaunchTemplate.
Constructor Details
#initialize(params = {}) ⇒ LaunchTemplate
Returns a new instance of LaunchTemplate.
103 104 105 106 107 108 |
# File 'lib/cartography/cluster.rb', line 103 def initialize(params = {}) @name = params["Name"] @id = params["ID"] @image_id = params["ImageID"] @instance_type = params["InstanceType"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
98 99 100 |
# File 'lib/cartography/cluster.rb', line 98 def id @id end |
#image_id ⇒ Object (readonly)
Returns the value of attribute image_id.
98 99 100 |
# File 'lib/cartography/cluster.rb', line 98 def image_id @image_id end |
#instance_type ⇒ Object (readonly)
Returns the value of attribute instance_type.
98 99 100 |
# File 'lib/cartography/cluster.rb', line 98 def instance_type @instance_type end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
98 99 100 |
# File 'lib/cartography/cluster.rb', line 98 def name @name end |