class BankLink::Configuration
Attributes
banks[RW]
default_encoding[RW]
mac_fields[RW]
Public Class Methods
new()
click to toggle source
# File lib/bank_link/configuration.rb, line 32 def initialize file_data = YAML.load(File.read(File.dirname(__FILE__) + "/../../mac_fields.yml")) file_data.each do |type, versions| mac_fields { |mf| mf[type] = Hashie::Mash.new(versions) } end @banks ||= Hashie::Mash.new end
Public Instance Methods
each_link(type, &block)
click to toggle source
# File lib/bank_link/configuration.rb, line 40 def each_link type, &block banks.collect { |name, bank| bank.method(type).call() }.compact.each(&block) end
payment_links(&block)
click to toggle source
# File lib/bank_link/configuration.rb, line 24 def payment_links &block each_link :payment_link, &block end