Class: Node
- Inherits:
-
Object
- Object
- Node
- Defined in:
- lib/NetAnalyzer/nodes.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(id, type) ⇒ Node
constructor
A new instance of Node.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
2 3 4 |
# File 'lib/NetAnalyzer/nodes.rb', line 2 def id @id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
2 3 4 |
# File 'lib/NetAnalyzer/nodes.rb', line 2 def type @type end |