Class: Databender::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/databender/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/databender/table.rb', line 3

def name
  @name
end

#parentsObject

Returns the value of attribute parents.



3
4
5
# File 'lib/databender/table.rb', line 3

def parents
  @parents
end

#rankObject

Returns the value of attribute rank.



3
4
5
# File 'lib/databender/table.rb', line 3

def rank
  @rank
end

Instance Method Details

#inspectObject



11
12
13
# File 'lib/databender/table.rb', line 11

def inspect
  "#{@name} -> #{@rank}"
end