Class: Cobrato::Resources::BankAccount

Inherits:
Base
  • Object
show all
Defined in:
lib/cobrato/resources/bank_account.rb

Instance Attribute Summary

Attributes inherited from Base

#http

Instance Method Summary collapse

Methods inherited from Base

#collection_name, #create, crud, #destroy, #initialize, #list, #parsed_body, #show, #update

Methods included from Hooks

#notify

Constructor Details

This class inherits a constructor from Cobrato::Resources::Base

Instance Method Details

#portfolio_codes(id) ⇒ Object



6
7
8
9
10
# File 'lib/cobrato/resources/bank_account.rb', line 6

def portfolio_codes(id)
  http.get("#{resource_base_path}/#{id}/portfolio_codes") do |response|
    parsed_body(response)["portfolio_codes"]
  end
end