Sha256: d84a587e502c3e944631721167c87b2943946826db441ed446b1b9b912e91b23
Contents?: true
Size: 707 Bytes
Versions: 7
Compression:
Stored size: 707 Bytes
Contents
# frozen_string_literal: true module FinApps module REST class PlaidConsumerInstitutions < PlaidResources # :nodoc: def create(params) super(params, 'p/institution/consumer') end def show(id, options = { show_accounts: false }) results, error_messages = super(nil, "p/institution/consumer/#{id}") if error_messages.empty? && options[:show_accounts] account_results, error_messages = super(nil, "p/institution/consumer/#{id}/account") results[:accounts] = account_results if error_messages.empty? end [results, error_messages] end def list super 'p/institution/consumer' end end end end
Version data entries
7 entries across 7 versions & 1 rubygems