Module: IbanLookup
- Defined in:
- lib/iban-lookup.rb
Overview
Lookup a new iban number
Getting the BIC number
IbanLookup.lookup(iban).bic # => BARCGB22
Defined Under Namespace
Classes: Configuration, IbanCom
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
21 22 23 |
# File 'lib/iban-lookup.rb', line 21 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
24 25 26 27 |
# File 'lib/iban-lookup.rb', line 24 def configure self.configuration ||= Configuration.new yield(configuration) end |
.lookup(*args) ⇒ Object
166 167 168 |
# File 'lib/iban-lookup.rb', line 166 def lookup(*args) "IbanLookup::#{configuration.service.classify}".constantize.new(*args) end |