Module: FineAnts

Defined in:
lib/fine_ants.rb,
lib/fine_ants/runner.rb,
lib/fine_ants/version.rb,
lib/fine_ants/adapters.rb,
lib/fine_ants/adapters/pnc.rb,
lib/fine_ants/adapters/amex.rb,
lib/fine_ants/adapters/strs.rb,
lib/fine_ants/adapters/chase.rb,
lib/fine_ants/adapters/etrade.rb,
lib/fine_ants/adapters/schwab.rb,
lib/fine_ants/adapters/simple.rb,
lib/fine_ants/adapters/target.rb,
lib/fine_ants/adapters/zillow.rb,
lib/fine_ants/adapters/vanguard.rb,
lib/fine_ants/adapters/purduefed.rb,
lib/fine_ants/login_failed_error.rb,
lib/fine_ants/adapters/betterment.rb,
lib/fine_ants/adapters/ufb_direct.rb,
lib/fine_ants/adapters/simple_bancorp.rb

Defined Under Namespace

Modules: Adapters Classes: LoginFailedError, Runner

Constant Summary collapse

VERSION =
"1.9.0"

Class Method Summary collapse

Class Method Details

.download(adapter_name, credentials) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/fine_ants.rb', line 8

def self.download(adapter_name, credentials)
  adapter = if adapter_name.instance_of?(Class)
    adapter_name
  else
    Adapters.look_up(adapter_name)
  end
  Runner.new(adapter.new(credentials), credentials).download
end