Class: Newral::Graphs::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/newral/graphs/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, location: nil) ⇒ Node

Returns a new instance of Node.



5
6
7
8
# File 'lib/newral/graphs/node.rb', line 5

def initialize( name: nil, location: nil )
  @name = name
  @location = location
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



4
5
6
# File 'lib/newral/graphs/node.rb', line 4

def location
  @location
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/newral/graphs/node.rb', line 4

def name
  @name
end