Class: Trailblazer::Operation::Finder::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/trailblazer/operation/finder.rb

Instance Method Summary collapse

Instance Method Details

#call(options, params) ⇒ Object



26
27
28
29
30
31
32
33
# File 'lib/trailblazer/operation/finder.rb', line 26

def call(options, params)
  finder_class = options[:"finder.class"]
  entity = options[:"finder.entity"]
  action = options[:"finder.action"]
  action = :all unless i[all single].include?(action)

  send("#{action}!", finder_class, entity, params, options[:"finder.action"])
end