Class: BridgeRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/ynap/models/bridge_record.rb

Direct Known Subclasses

Account, Bank

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(plaid_access_token) ⇒ BridgeRecord

Returns a new instance of BridgeRecord.



4
5
6
7
8
# File 'lib/ynap/models/bridge_record.rb', line 4

def initialize(plaid_access_token)
  @plaid_access_token = plaid_access_token
  @plaid_client = Plaid::Client.new Ynap.config[:plaid].slice(:env, :client_id, :secret)
  @ynab_client  = YNAB::API.new Ynap.config.dig(:ynab, :token)
end

Instance Attribute Details

#plaid_access_tokenObject

Returns the value of attribute plaid_access_token.



2
3
4
# File 'lib/ynap/models/bridge_record.rb', line 2

def plaid_access_token
  @plaid_access_token
end

#plaid_clientObject

Returns the value of attribute plaid_client.



2
3
4
# File 'lib/ynap/models/bridge_record.rb', line 2

def plaid_client
  @plaid_client
end

#ynab_clientObject

Returns the value of attribute ynab_client.



2
3
4
# File 'lib/ynap/models/bridge_record.rb', line 2

def ynab_client
  @ynab_client
end