Class: PartialKs::MultiParent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parents) ⇒ MultiParent

Returns a new instance of MultiParent.



58
59
60
# File 'lib/partial_ks/table.rb', line 58

def initialize(parents)
  @parents = parents
end

Instance Attribute Details

#parentsObject (readonly)

Returns the value of attribute parents.



56
57
58
# File 'lib/partial_ks/table.rb', line 56

def parents
  @parents
end

Instance Method Details

#==(other) ⇒ Object



62
63
64
# File 'lib/partial_ks/table.rb', line 62

def ==(other)
  table_name == other.table_name if other
end

#table_nameObject

only used in comparison in Runner



67
68
69
# File 'lib/partial_ks/table.rb', line 67

def table_name
  parents.map(&:table_name).join(",")
end