Class: IB::Messages::Incoming::ReceiveFA

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

Instance Method Summary collapse

Instance Method Details

#accountsObject



28
29
30
31
32
33
34
# File 'lib/ib/messages/incoming/account_value.rb', line 28

def accounts
	if( a= xml[:ListOfAccountAliases][:AccountAlias]).is_a? Array
		a.map{|x| Account.new x }
	elsif a.is_a? Hash			## only one account (soley financial advisor)
		[ Account.new( a ) ]
	end
end

#to_humanObject



36
37
38
# File 'lib/ib/messages/incoming/account_value.rb', line 36

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