Sha256: 363863c997d6070383787d40b953bfa77aa33a351616e0e8131a9e8d2c66d201

Contents?: true

Size: 853 Bytes

Versions: 4

Compression:

Stored size: 853 Bytes

Contents

module Plaid
  module Scaffold
    class Base

      require 'plaid/scaffold/institution'
      require 'plaid/client/configuration'
      require 'plaid/plaid_object'
      require 'plaid/plaid_error'
      require 'plaid/plaid_response'
      require 'httparty'
      require 'singleton'
      include Plaid::Scaffold::Institutions
      include Plaid::Client::Configurations
      include HTTParty
      include Singleton

      base_uri endpoint
      format :json
      ssl_ca_file certpath
      ssl_version :SSLv3
      debug_output $stdout

      @@institutions ||= []

      def self.institutions=(i)
        @@institutions = i
      end

      def self.institutions
        if @@institutions.empty?
          self.index_institutions rescue "There is something wrong with Plaid!"
        end

        @@institutions
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plaid-kilt-0.5.5 lib/plaid/scaffold/scaffold.rb
plaid-kilt-0.5.4 lib/plaid/scaffold/scaffold.rb
plaid-kilt-0.5.2 lib/plaid/scaffold/scaffold.rb
plaid-kilt-0.5.1 lib/plaid/scaffold/scaffold.rb