Class: Newral::Graphs::Node
- Inherits:
-
Object
- Object
- Newral::Graphs::Node
- Defined in:
- lib/newral/graphs/node.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name: nil, location: nil) ⇒ Node
constructor
A new instance of Node.
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
#location ⇒ Object (readonly)
Returns the value of attribute location.
4 5 6 |
# File 'lib/newral/graphs/node.rb', line 4 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/newral/graphs/node.rb', line 4 def name @name end |