Class: AccountBalance
- Inherits:
-
Object
- Object
- AccountBalance
- Defined in:
- lib/default.rb
Overview
/AccountBalance
totalBalance - Amount
pendingInBalance - Amount
pendingOutBalance - Amount
availableBalances - AvailableBalances
Instance Attribute Summary collapse
-
#availableBalances ⇒ Object
Returns the value of attribute availableBalances.
-
#pendingInBalance ⇒ Object
Returns the value of attribute pendingInBalance.
-
#pendingOutBalance ⇒ Object
Returns the value of attribute pendingOutBalance.
-
#totalBalance ⇒ Object
Returns the value of attribute totalBalance.
Instance Method Summary collapse
-
#initialize(totalBalance = nil, pendingInBalance = nil, pendingOutBalance = nil, availableBalances = nil) ⇒ AccountBalance
constructor
A new instance of AccountBalance.
Constructor Details
#initialize(totalBalance = nil, pendingInBalance = nil, pendingOutBalance = nil, availableBalances = nil) ⇒ AccountBalance
Returns a new instance of AccountBalance.
147 148 149 150 151 152 |
# File 'lib/default.rb', line 147 def initialize(totalBalance = nil, pendingInBalance = nil, pendingOutBalance = nil, availableBalances = nil) @totalBalance = totalBalance @pendingInBalance = pendingInBalance @pendingOutBalance = pendingOutBalance @availableBalances = availableBalances end |
Instance Attribute Details
#availableBalances ⇒ Object
Returns the value of attribute availableBalances.
145 146 147 |
# File 'lib/default.rb', line 145 def availableBalances @availableBalances end |
#pendingInBalance ⇒ Object
Returns the value of attribute pendingInBalance.
143 144 145 |
# File 'lib/default.rb', line 143 def pendingInBalance @pendingInBalance end |
#pendingOutBalance ⇒ Object
Returns the value of attribute pendingOutBalance.
144 145 146 |
# File 'lib/default.rb', line 144 def pendingOutBalance @pendingOutBalance end |
#totalBalance ⇒ Object
Returns the value of attribute totalBalance.
142 143 144 |
# File 'lib/default.rb', line 142 def totalBalance @totalBalance end |