Class: Yuriita::Definitions::Multiple
- Inherits:
-
Object
- Object
- Yuriita::Definitions::Multiple
- Defined in:
- lib/yuriita/definitions/multiple.rb
Instance Attribute Summary collapse
-
#combination ⇒ Object
readonly
Returns the value of attribute combination.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #apply(query:) ⇒ Object
-
#initialize(options:, combination:) ⇒ Multiple
constructor
A new instance of Multiple.
Constructor Details
#initialize(options:, combination:) ⇒ Multiple
6 7 8 9 |
# File 'lib/yuriita/definitions/multiple.rb', line 6 def initialize(options:, combination:) = @combination = combination end |
Instance Attribute Details
#combination ⇒ Object (readonly)
Returns the value of attribute combination.
4 5 6 |
# File 'lib/yuriita/definitions/multiple.rb', line 4 def combination @combination end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/yuriita/definitions/multiple.rb', line 4 def end |
Instance Method Details
#apply(query:) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/yuriita/definitions/multiple.rb', line 11 def apply(query:) filters = selected_filters(query) if filters.present? Clauses::Filter.new(filters: filters, combination: combination) else Clauses::Identity.new end end |