Class: BridgeRecord
- Inherits:
-
Object
- Object
- BridgeRecord
- Defined in:
- lib/ynap/models/bridge_record.rb
Instance Attribute Summary collapse
-
#plaid_access_token ⇒ Object
Returns the value of attribute plaid_access_token.
-
#plaid_client ⇒ Object
Returns the value of attribute plaid_client.
-
#ynab_client ⇒ Object
Returns the value of attribute ynab_client.
Instance Method Summary collapse
-
#initialize(plaid_access_token) ⇒ BridgeRecord
constructor
A new instance of BridgeRecord.
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_token ⇒ Object
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_client ⇒ Object
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_client ⇒ Object
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 |