Class: Dto::Infra::NodePoolEntityPayload

Inherits:
Object
  • Object
show all
Defined in:
lib/dto/infra/node_pool_entity_payload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, id, compartment_id) ⇒ NodePoolEntityPayload

Returns a new instance of NodePoolEntityPayload.



9
10
11
12
13
# File 'lib/dto/infra/node_pool_entity_payload.rb', line 9

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

Instance Attribute Details

#compartment_idObject

Returns the value of attribute compartment_id.



7
8
9
# File 'lib/dto/infra/node_pool_entity_payload.rb', line 7

def compartment_id
  @compartment_id
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/dto/infra/node_pool_entity_payload.rb', line 7

def id
  @id
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/dto/infra/node_pool_entity_payload.rb', line 7

def name
  @name
end

Instance Method Details

#to_hashObject



15
16
17
18
19
20
21
# File 'lib/dto/infra/node_pool_entity_payload.rb', line 15

def to_hash
  {
    name: @name,
    id: @id,
    compartment_id: @compartment_id
  }.compact
end