Sha256: 3de173c06aa6423058c653442aecf8d7165084c4df6dd293fb90878be2e9c2a0
Contents?: true
Size: 811 Bytes
Versions: 14
Compression:
Stored size: 811 Bytes
Contents
require 'plaid/util' module Plaid class Transaction include Plaid::Util # Define vars for user accounts attr_accessor(:id, :account, :amount, :name, :meta, :location, :pending, :score, :type, :category, :category_id) # Instantiate a new account with the results of the successful API call # Build an array of nested transactions, and return self if successful def new(res) begin self.id = res['_id'], self.account = res['_account'], self.amount = res['amount'], self.name = res['name'], self.meta = res['meta'], self.location = res['location'], self.pending = res['pending'], self.score = res['score'], self.type = res['type'], self.category = res['category'], self.category_id = res['category_id'] rescue => e error_handler(e) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems