Class: Arel::Visitors::Dot::Node
- Inherits:
-
Object
- Object
- Arel::Visitors::Dot::Node
- Defined in:
- lib/arel/visitors/dot.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, id, fields = []) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(name, id, fields = []) ⇒ Node
Returns a new instance of Node.
9 10 11 12 13 |
# File 'lib/arel/visitors/dot.rb', line 9 def initialize(name, id, fields = []) @name = name @id = id @fields = fields end |
Instance Attribute Details
#fields ⇒ Object
Returns the value of attribute fields.
7 8 9 |
# File 'lib/arel/visitors/dot.rb', line 7 def fields @fields end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/arel/visitors/dot.rb', line 7 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/arel/visitors/dot.rb', line 7 def name @name end |