Class: Dto::Infra::NodePoolEntityPayload
- Inherits:
-
Object
- Object
- Dto::Infra::NodePoolEntityPayload
- Defined in:
- lib/dto/infra/node_pool_entity_payload.rb
Instance Attribute Summary collapse
-
#compartment_id ⇒ Object
Returns the value of attribute compartment_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, id, compartment_id) ⇒ NodePoolEntityPayload
constructor
A new instance of NodePoolEntityPayload.
- #to_hash ⇒ Object
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_id ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/dto/infra/node_pool_entity_payload.rb', line 7 def id @id end |
#name ⇒ Object
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_hash ⇒ Object
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 |