Class: Yuriita::OrCombination
- Inherits:
-
Object
- Object
- Yuriita::OrCombination
- Defined in:
- lib/yuriita/or_combination.rb
Instance Method Summary collapse
- #combine ⇒ Object
-
#initialize(base_relation:, relations:) ⇒ OrCombination
constructor
A new instance of OrCombination.
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
#combine ⇒ Object
8 9 10 |
# File 'lib/yuriita/or_combination.rb', line 8 def combine base_relation.merge(combined_relations) end |