Sha256: dac1ec85031f6bbf2572d0b976d3c13bcdfd1ed94ceac2e73a27e68806cc1a98

Contents?: true

Size: 663 Bytes

Versions: 3

Compression:

Stored size: 663 Bytes

Contents

require 'ibandit/version'
require 'ibandit/errors'
require 'ibandit/iban'
require 'ibandit/german_details_converter'
require 'ibandit/iban_splitter'
require 'ibandit/iban_assembler'
require 'ibandit/local_details_cleaner'
require 'ibandit/check_digit'

module Ibandit
  class << self
    attr_accessor :bic_finder, :modulus_checker

    def find_bic(country_code, national_id)
      raise NotImplementedError, 'BIC finder is not defined' unless @bic_finder
      @bic_finder.call(country_code, national_id)
    end

    def structures
      @structures ||= YAML.load_file(
        File.expand_path('../../data/structures.yml', __FILE__)
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ibandit-0.3.4 lib/ibandit.rb
ibandit-0.3.3 lib/ibandit.rb
ibandit-0.3.2 lib/ibandit.rb