Class: BanksRegistry::Matchers::BicMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/banks_registry/matchers/bic_matcher.rb

Instance Method Summary collapse

Instance Method Details

#call(bic) ⇒ Object



8
9
10
11
12
# File 'lib/banks_registry/matchers/bic_matcher.rb', line 8

def call(bic)
  banks_loader.call(country_from_bic(bic)).find do |bank|
    bank.bic == bic
  end
end