Class: Yuriita::Clauses::Dynamic

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

Instance Method Summary collapse

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