Class: Cartography::Cluster::Site::ServerGroup::LaunchTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/cartography/cluster.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



98
99
100
# File 'lib/cartography/cluster.rb', line 98

def id
  @id
end

#image_idObject (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_typeObject (readonly)

Returns the value of attribute instance_type.



98
99
100
# File 'lib/cartography/cluster.rb', line 98

def instance_type
  @instance_type
end

#nameObject (readonly)

Returns the value of attribute name.



98
99
100
# File 'lib/cartography/cluster.rb', line 98

def name
  @name
end