Class: PartialKs::MultiParent
- Inherits:
-
Object
- Object
- PartialKs::MultiParent
- Defined in:
- lib/partial_ks/table.rb
Instance Attribute Summary collapse
-
#parents ⇒ Object
readonly
Returns the value of attribute parents.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(parents) ⇒ MultiParent
constructor
A new instance of MultiParent.
-
#table_name ⇒ Object
only used in comparison in Runner.
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
#parents ⇒ Object (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_name ⇒ Object
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 |