Class: IB::Messages::Incoming::ManagedAccounts

Inherits:
Object
  • Object
show all
Defined in:
lib/ib/messages/incoming/account_value.rb

Instance Method Summary collapse

Instance Method Details

#accountsObject



11
12
13
# File 'lib/ib/messages/incoming/account_value.rb', line 11

def accounts
	accounts_list.split(',').map{|a| Account.new account: a}
end

#to_humanObject



15
16
17
# File 'lib/ib/messages/incoming/account_value.rb', line 15

def to_human
	"< ManagedAccounts: #{accounts.map(&:account).join(" - ")}>"
end