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.



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

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



20
21
22
# File 'lib/awspec/type/eks_nodegroup.rb', line 20

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



20
21
22
# File 'lib/awspec/type/eks_nodegroup.rb', line 20

def name
  @name
end

Instance Method Details

#to_sObject



27
28
29
# File 'lib/awspec/type/eks_nodegroup.rb', line 27

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