Class: MARS::Rendering::Graph::Subgraph
- Inherits:
-
Object
- Object
- MARS::Rendering::Graph::Subgraph
- Defined in:
- lib/mars/rendering/graph/subgraph.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#nodes ⇒ Object
readonly
Returns the value of attribute nodes.
Instance Method Summary collapse
-
#initialize(id, name, nodes) ⇒ Subgraph
constructor
A new instance of Subgraph.
Constructor Details
#initialize(id, name, nodes) ⇒ Subgraph
Returns a new instance of Subgraph.
9 10 11 12 13 |
# File 'lib/mars/rendering/graph/subgraph.rb', line 9 def initialize(id, name, nodes) @id = id @name = name @nodes = nodes end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/mars/rendering/graph/subgraph.rb', line 7 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/mars/rendering/graph/subgraph.rb', line 7 def name @name end |
#nodes ⇒ Object (readonly)
Returns the value of attribute nodes.
7 8 9 |
# File 'lib/mars/rendering/graph/subgraph.rb', line 7 def nodes @nodes end |