class Havox::Node
Attributes
attributes[R]
name[R]
type[R]
Public Class Methods
new(name, attributes)
click to toggle source
# File lib/havox/classes/node.rb, line 5 def initialize(name, attributes) @name = name @type = attributes[:type]&.to_sym @attributes = attributes end
Public Instance Methods
host?()
click to toggle source
# File lib/havox/classes/node.rb, line 11 def host? @type.eql?(:host) end
switch?()
click to toggle source
# File lib/havox/classes/node.rb, line 15 def switch? @type.eql?(:switch) end