Class google.gdata.finance.CostBasis
Object
|
+--google.gdata.finance.CostBasis
- class
google.gdata.finance.CostBasis
Cost basis for the portfolio or position.
Defined in gdata.js
Constructor Summary |
google.gdata.finance.CostBasis(<Object> opt_params)
Constructs a cost basis using an object parameter whose property names match
the setter method to use for each property.
|
Method Summary |
void
|
addMoney(<google.gdata.Money|Object> money)
Adds a new monetary value of the cost basi.
|
Array.<google.gdata.Money>
|
getMoney()
Returns the monetary value of the cost basis.
|
void
|
setMoney(<Array.<google.gdata.Money>|Array.<Object>|undefined> money)
Sets the monetary value of the cost basis.
|
$moneyClass_
Object $moneyClass_
google.gdata.finance.CostBasis
google.gdata.finance.CostBasis(<Object> opt_params)
Constructs a cost basis using an object parameter whose property names match
the setter method to use for each property.
Parameters:
opt_params
- Optional parameters, each of which is used as the sole parameter to the associated setter method: money.
addMoney
void addMoney(<google.gdata.Money|Object> money)
Adds a new monetary value of the cost basi.
Parameters:
money
- Monetary value of the cost basi to add, or object to use as a parameter to the google.gdata.Money constructor.
getMoney
Array.<google.gdata.Money> getMoney()
Returns the monetary value of the cost basis.
Returns:
Monetary value of the cost basis.
setMoney
void setMoney(<Array.<google.gdata.Money>|Array.<Object>|undefined> money)
Sets the monetary value of the cost basis.
Parameters:
money
- Monetary value of the cost basis, where each monetary value of the cost basi is added using the addMoney() function, or undefined to clear the monetary value of the cost basis.
Documentation generated by
JSDoc on Mon Mar 30 15:50:55 2009