Sha256: 0425e0b5d5a2c710033c3736be5f8c9724a98055f01da598e96de3829952365b

Contents?: true

Size: 551 Bytes

Versions: 2

Compression:

Stored size: 551 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.config do |p|
      p.client_id = configuration.client_id
      p.secret = configuration.secret
      p.env = configuration.env.to_sym
    end
    Plaid
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
argyle-1.0.0.beta.2 lib/argyle.rb
argyle-1.0.0.beta lib/argyle.rb