Class: Yuriita::OrCombination

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

Instance Method Summary collapse

Constructor Details

#initialize(base_relation:, relations:) ⇒ OrCombination

Returns a new instance of OrCombination.



3
4
5
6
# File 'lib/yuriita/or_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/or_combination.rb', line 8

def combine
  base_relation.merge(combined_relations)
end