Class: Yuriita::AndCombination
- Inherits:
-
Object
- Object
- Yuriita::AndCombination
- Defined in:
- lib/yuriita/and_combination.rb
Instance Method Summary collapse
- #combine ⇒ Object
-
#initialize(base_relation:, relations:) ⇒ AndCombination
constructor
A new instance of AndCombination.
Constructor Details
#initialize(base_relation:, relations:) ⇒ AndCombination
Returns a new instance of AndCombination.
3 4 5 6 |
# File 'lib/yuriita/and_combination.rb', line 3 def initialize(base_relation:, relations:) @base_relation = base_relation @relations = relations end |
Instance Method Details
#combine ⇒ Object
8 9 10 |
# File 'lib/yuriita/and_combination.rb', line 8 def combine base_relation.merge(combined_relations) end |