Sha256: 5ecdbd9a75903803f517cb4ce8c00d8a09c6c21f6a7875036569141501950935
Contents?: true
Size: 391 Bytes
Versions: 2
Compression:
Stored size: 391 Bytes
Contents
require 'ostruct' class JSONSerialized < OpenStruct end module QuestradeClient class Questrade def initialize(refresh_token, practice = false) @client = QuestradeClient.login(refresh_token, practice) end def accounts @client.accounts.map do |account_data| Account.new(account_data) end end class Account < JSONSerialized end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
questrade_client-0.0.3 | lib/questrade_client/questrade/account.rb |
questrade_client-0.0.2 | lib/questrade_client/questrade/account.rb |