Class: VFabric::Node

Inherits:
Shared::Node show all
Includes:
Shared::Deletable
Defined in:
lib/vas/vfabric/nodes.rb

Overview

A VFabric node

Instance Attribute Summary

Attributes included from Shared::Deletable

#collection

Attributes inherited from Shared::Node

#agent_home, #architecture, #host_names, #ip_addresses, #ipv4_addresses, #ipv6_addresses, #metadata, #operating_system

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods included from Shared::Deletable

#delete

Methods inherited from Shared::Node

#reload, #update

Constructor Details

#initialize(location, client) ⇒ Node

Returns a new instance of Node.



35
36
37
# File 'lib/vas/vfabric/nodes.rb', line 35

def initialize(location, client)
  super(location, client)
end

Instance Method Details

#to_sString

Returns a string representation of the node.

Returns:

  • (String)

    a string representation of the node



40
41
42
# File 'lib/vas/vfabric/nodes.rb', line 40

def to_s
  "#<#{self.class} host_names='#{host_names}' ip_addresses='#{ip_addresses}' ipv4_addresses='#{ipv4_addresses}' ipv6_addresses='#{ipv6_addresses}' operating_system='#{operating_system}' architecture='#{architecture}' agent_home='#{agent_home}' metadata='#{}'>"
end