Class: Yuriita::AndCombination

Inherits:
Object
  • Object
show all
Defined in:
lib/yuriita/and_combination.rb

Instance Method Summary collapse

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

#combineObject



8
9
10
# File 'lib/yuriita/and_combination.rb', line 8

def combine
  base_relation.merge(combined_relations)
end