Class: Plaid::Scaffold::Base

Inherits:
Object
  • Object
show all
Includes:
HTTParty, Client::Configurations, Categories, Institutions, Singleton
Defined in:
lib/plaid/scaffold/scaffold.rb

Class Method Summary collapse

Methods included from Categories

included

Methods included from Institutions

included

Class Method Details

.category(cat_id) ⇒ Object



39
40
41
# File 'lib/plaid/scaffold/scaffold.rb', line 39

def self.category(cat_id)
  self.get_category(cat_id) rescue "There is something wrong with Plaid!"
end

.institutionsObject



31
32
33
34
35
36
37
# File 'lib/plaid/scaffold/scaffold.rb', line 31

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

  @@institutions
end

.institutions=(i) ⇒ Object



27
28
29
# File 'lib/plaid/scaffold/scaffold.rb', line 27

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