Sha256: 4bb6ef84742bc61439b532a5dbc26f177f5e0442b30bb3feaff79254e515900a

Contents?: true

Size: 590 Bytes

Versions: 3

Compression:

Stored size: 590 Bytes

Contents

require 'plaid'
require_relative 'argyle/version'
require_relative 'argyle/configuration'
require_relative 'argyle/engine'

module Argyle
  class Error < StandardError; end

  class << self
    attr_writer :configuration
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configure
    yield(configuration)
  end

  def self.plaid_client
    @plaid_client ||= Plaid.config do |p|
      p.customer_id = configuration.customer_id
      p.secret = configuration.secret
      p.environment_location = configuration.environment_location
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
argyle-0.2.0 lib/argyle.rb
argyle-0.1.0 lib/argyle.rb
argyle-0.0.1 lib/argyle.rb