Sha256: 21af20176210c0e363b904eb8bafa6a4c67171883b0f80e2d9ba9dc0e8c0d88f
Contents?: true
Size: 589 Bytes
Versions: 1
Compression:
Stored size: 589 Bytes
Contents
# frozen_string_literal: true require 'wells_fargo/version' require 'wells_fargo/api' module WellsFargo Configuration = Struct.new( :url, :client_cert, :client_key, :gateway_entity_id, :gateway_company_id, :consumer_key, :consumer_secret ) module_function def config @config ||= Configuration.new end def configure yield config end 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wells_fargo-api-0.1.0 | lib/wells_fargo.rb |