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