Class: Databender::Table
- Inherits:
-
Object
- Object
- Databender::Table
- Defined in:
- lib/databender/table.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#parents ⇒ Object
Returns the value of attribute parents.
-
#rank ⇒ Object
Returns the value of attribute rank.
Instance Method Summary collapse
-
#initialize(name) ⇒ Table
constructor
A new instance of Table.
- #inspect ⇒ Object
Constructor Details
#initialize(name) ⇒ Table
Returns a new instance of Table.
5 6 7 8 9 |
# File 'lib/databender/table.rb', line 5 def initialize(name) @name = name @rank = nil @parents = [] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/databender/table.rb', line 3 def name @name end |
#parents ⇒ Object
Returns the value of attribute parents.
3 4 5 |
# File 'lib/databender/table.rb', line 3 def parents @parents end |
#rank ⇒ Object
Returns the value of attribute rank.
3 4 5 |
# File 'lib/databender/table.rb', line 3 def rank @rank end |
Instance Method Details
#inspect ⇒ Object
11 12 13 |
# File 'lib/databender/table.rb', line 11 def inspect "#{@name} -> #{@rank}" end |