Module: WellsFargo

Defined in:
lib/wells_fargo.rb,
lib/wells_fargo/api.rb,
lib/wells_fargo/version.rb,
lib/wells_fargo/response.rb,
lib/wells_fargo/endpoints.rb,
lib/wells_fargo/endpoints/ach.rb,
lib/wells_fargo/endpoints/base.rb,
lib/wells_fargo/endpoints/token.rb,
lib/wells_fargo/endpoints/wires.rb

Defined Under Namespace

Modules: Endpoints Classes: API, Configuration, Response

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.clientObject



22
23
24
25
26
27
28
29
30
# File 'lib/wells_fargo.rb', line 22

def client
  @client ||= API.new(
    config.url,
    config.to_h.slice(
      :client_cert, :client_key, :consumer_key, :consumer_secret,
      :gateway_company_id, :gateway_entity_id
    )
  )
end

.configObject



14
15
16
# File 'lib/wells_fargo.rb', line 14

def config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



18
19
20
# File 'lib/wells_fargo.rb', line 18

def configure
  yield config
end