Class: Node

Inherits:
Object
  • Object
show all
Defined in:
lib/NetAnalyzer/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, type) ⇒ Node

Returns a new instance of Node.



3
4
5
6
# File 'lib/NetAnalyzer/nodes.rb', line 3

def initialize(id, type)
	@id = id
	@type = type
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



2
3
4
# File 'lib/NetAnalyzer/nodes.rb', line 2

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type.



2
3
4
# File 'lib/NetAnalyzer/nodes.rb', line 2

def type
  @type
end