Module: BillTrap::Adapters

Extended by:
Adapters
Included in:
Adapters
Defined in:
lib/billtrap/adapters.rb,
lib/billtrap/adapters/ooffice.rb

Defined Under Namespace

Classes: Ooffice

Instance Method Summary collapse

Instance Method Details

#load_adapter(name) ⇒ Object



5
6
7
8
9
10
# File 'lib/billtrap/adapters.rb', line 5

def load_adapter name
  adapter = name.downcase
  require "adapters/#{adapter}"
  # Try to load the adapter
  BillTrap::Adapters.const_get(adapter.classify)
end