Class: Awspec::Type::EksNodeSecGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/awspec/type/eks_nodegroup.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, name) ⇒ EksNodeSecGroup

Returns a new instance of EksNodeSecGroup.



24
25
26
27
# File 'lib/awspec/type/eks_nodegroup.rb', line 24

def initialize(id, name)
  @id = id
  @name = name
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



22
23
24
# File 'lib/awspec/type/eks_nodegroup.rb', line 22

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



22
23
24
# File 'lib/awspec/type/eks_nodegroup.rb', line 22

def name
  @name
end

Instance Method Details

#to_sObject



29
30
31
# File 'lib/awspec/type/eks_nodegroup.rb', line 29

def to_s
  "ID: #{@id}, Name: #{@name}"
end