Module: LAA::FeeCalculator::HasManyable::ClassMethods::Searchable

Defined in:
lib/laa/fee_calculator/has_manyable.rb

Instance Method Summary collapse

Instance Method Details

#find_by(**options) ⇒ Object



12
13
14
15
16
# File 'lib/laa/fee_calculator/has_manyable.rb', line 12

def find_by(**options)
  find do |ostruct|
    options.map { |k, v| ostruct[k].eql?(v) }.all?
  end
end