Class: Kontena::Cli::Models::Node

Inherits:
Object
  • Object
show all
Includes:
CloudApiModel
Defined in:
lib/kontena/cli/models/node.rb

Instance Attribute Summary

Attributes included from CloudApiModel

#api_data

Instance Method Summary collapse

Methods included from CloudApiModel

#id, #initialize, #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Kontena::Cli::Models::CloudApiModel

Instance Method Details

#organization_idObject



11
12
13
# File 'lib/kontena/cli/models/node.rb', line 11

def organization_id
  @api_data.dig('relationships', 'organization', 'data', 'id')
end

#platform_idObject



7
8
9
# File 'lib/kontena/cli/models/node.rb', line 7

def platform_id
  @api_data.dig('relationships', 'platform', 'data', 'id')
end