Class: RabbitMq::Node
- Inherits:
-
Shared::GroupableNode
- Object
- Shared::Resource
- Shared::Node
- Shared::GroupableNode
- RabbitMq::Node
- Defined in:
- lib/vas/rabbitmq/nodes.rb
Overview
A RabbitMQ node
Instance Attribute Summary
Attributes inherited from Shared::Node
#agent_home, #architecture, #host_names, #ip_addresses, #ipv4_addresses, #ipv6_addresses, #metadata, #operating_system
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ Node
constructor
A new instance of Node.
-
#instances ⇒ NodeInstances
The node’s instances.
-
#to_s ⇒ String
A string representation of the node.
Methods inherited from Shared::GroupableNode
Methods inherited from Shared::Node
Constructor Details
#initialize(location, client) ⇒ Node
Returns a new instance of Node.
33 34 35 36 |
# File 'lib/vas/rabbitmq/nodes.rb', line 33 def initialize(location, client) super(location, client, Group) @instances_location = Util::LinkUtils.get_link_href(details, 'node-instances') end |
Instance Method Details
#instances ⇒ NodeInstances
Returns the node’s instances.
39 40 41 |
# File 'lib/vas/rabbitmq/nodes.rb', line 39 def instances @instances ||= NodeInstances.new(@instances_location, client) end |
#to_s ⇒ String
Returns a string representation of the node.
44 45 46 |
# File 'lib/vas/rabbitmq/nodes.rb', line 44 def to_s "#<#{self.class} host_names='#{host_names}' ip_addresses='#{ip_addresses}' ipv4_addresses='#{ipv4_addresses}' ipv6_addresses='#{ipv6_addresses}' operating_system='#{}' architecture='#{architecture}' agent_home='#{agent_home}' metadata='#{}'>" end |