Class: Yuriita::Clauses::Dynamic
- Inherits:
-
Object
- Object
- Yuriita::Clauses::Dynamic
- Defined in:
- lib/yuriita/clauses/dynamic.rb
Instance Method Summary collapse
- #apply(relation) ⇒ Object
-
#initialize(filter:, input:) ⇒ Dynamic
constructor
A new instance of Dynamic.
Constructor Details
#initialize(filter:, input:) ⇒ Dynamic
Returns a new instance of Dynamic.
4 5 6 7 |
# File 'lib/yuriita/clauses/dynamic.rb', line 4 def initialize(filter:, input:) @filter = filter @input = input end |
Instance Method Details
#apply(relation) ⇒ Object
9 10 11 |
# File 'lib/yuriita/clauses/dynamic.rb', line 9 def apply(relation) filter.apply(relation, input) end |