Sha256: 515fb24a55dae3fe06b6aeb8ea8b51b96f5f43cdcff202f388f1f5a3672036e6

Contents?: true

Size: 497 Bytes

Versions: 4

Compression:

Stored size: 497 Bytes

Contents

require_relative "lib/figo"

session = Figo::Session.new("ASHWLIkouP2O6_bgA2wWReRhletgWKHYjLqDaqb0LFfamim9RjexTo22ujRIP_cjLiRiSyQXyt2kM1eXU2XLFZQ0Hro15HikJQT_eNeT_9XQ")

# Print out list of account numbers and balances.
session.accounts.each do |account|
  puts account.account_number
  puts account.balance.balance
end

# Print out the list of all transaction originators/recipients of a specific account.
session.get_account("A1.1").transactions.each do |transaction|
 puts transaction.name
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
figo-1.4.2 console_demo.rb
figo-1.4.1 console_demo.rb
figo-1.4.0 console_demo.rb
figo-1.3.3 console_demo.rb