class Node
Class that represents a Controller device.
Attributes
name[R]
String : The name of the node. e.g. vrouter
Public Class Methods
new(controller: nil, name: nil)
click to toggle source
Parameters
controller
-
Controller : The controller object through which node is to be accessed.
name
-
String : The name of the node. e.g. vrouter
# File lib/controller/node.rb, line 41 def initialize(controller: nil, name: nil) raise ArgumentError, "Controller (controller) required" unless controller raise ArgumentError, "Name (name) required" unless name raise ArgumentError, "Controller (controller) must be instance of 'Controller'" unless controller.is_a?(Controller) @controller = controller @name = name end