Module: Plaid::Scaffold::Institutions::ClassMethods

Defined in:
lib/plaid/scaffold/institution.rb

Instance Method Summary collapse

Instance Method Details

#get_institution(id) ⇒ Object



15
16
17
18
# File 'lib/plaid/scaffold/institution.rb', line 15

def get_institution(id)
  response = self.get('/institutions/' + id.to_s)
  PlaidObject.new(response)
end

#index_institutionsObject



6
7
8
9
10
11
12
13
# File 'lib/plaid/scaffold/institution.rb', line 6

def index_institutions
  ret = []
  response = self.get('/institutions')
  response.each do |piece|
    ret << PlaidObject.new(piece)
  end
  self.institutions = ret
end