Sha256: 36a65ff7b53d54139449bbd698d218c5b0914e1d3f78476f246c672ae8d48e02

Contents?: true

Size: 525 Bytes

Versions: 3

Compression:

Stored size: 525 Bytes

Contents

module Plaid
  class Institution
    attr_accessor :id, :credentials, :name, :type, :has_mfa, :mfa

    def initialize(fields = {})
      @id = fields['id']
      @credentials = fields['credentials']
      @name = fields['name']
      @type = fields['type']
      @has_mfa = fields['has_mfa']
      @mfa = fields['mfa']
    end

    # API: semi-private
    # This method takes an array returned from the API and instantiates all of the institutions
    def self.all(res)
      res.map { |inst| new(inst) }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
plaid-1.6.2 lib/plaid/models/institution.rb
plaid-1.6.1 lib/plaid/models/institution.rb
plaid-1.6.0 lib/plaid/models/institution.rb