Class: AqumulateAPI::Position
- Defined in:
- lib/aqumulate_api/entities/position.rb
Constant Summary collapse
- ATTR_MAP =
{ id: 'PosID', date: 'Date', ticker: 'Ticker', description: 'Description', asset_id: 'AssetID', asset_type: 'AssetIDType', price: 'Price', quantity: 'Quantity', market_value: 'MarketValue', cost_basis: 'CostBasis' }
Constants inherited from Entity
Instance Attribute Summary collapse
-
#asset_id ⇒ Object
Returns the value of attribute asset_id.
-
#asset_type ⇒ Object
Returns the value of attribute asset_type.
-
#cost_basis ⇒ Object
Returns the value of attribute cost_basis.
-
#date ⇒ Object
Returns the value of attribute date.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#market_value ⇒ Object
Returns the value of attribute market_value.
-
#price ⇒ Object
Returns the value of attribute price.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#ticker ⇒ Object
Returns the value of attribute ticker.
Method Summary
Methods inherited from Entity
Constructor Details
This class inherits a constructor from AqumulateAPI::Entity
Instance Attribute Details
#asset_id ⇒ Object
Returns the value of attribute asset_id.
17 18 19 |
# File 'lib/aqumulate_api/entities/position.rb', line 17 def asset_id @asset_id end |
#asset_type ⇒ Object
Returns the value of attribute asset_type.
17 18 19 |
# File 'lib/aqumulate_api/entities/position.rb', line 17 def asset_type @asset_type end |
#cost_basis ⇒ Object
Returns the value of attribute cost_basis.
17 18 19 |
# File 'lib/aqumulate_api/entities/position.rb', line 17 def cost_basis @cost_basis end |
#date ⇒ Object
Returns the value of attribute date.
17 18 19 |
# File 'lib/aqumulate_api/entities/position.rb', line 17 def date @date end |
#description ⇒ Object
Returns the value of attribute description.
17 18 19 |
# File 'lib/aqumulate_api/entities/position.rb', line 17 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
17 18 19 |
# File 'lib/aqumulate_api/entities/position.rb', line 17 def id @id end |
#market_value ⇒ Object
Returns the value of attribute market_value.
17 18 19 |
# File 'lib/aqumulate_api/entities/position.rb', line 17 def market_value @market_value end |
#price ⇒ Object
Returns the value of attribute price.
17 18 19 |
# File 'lib/aqumulate_api/entities/position.rb', line 17 def price @price end |
#quantity ⇒ Object
Returns the value of attribute quantity.
17 18 19 |
# File 'lib/aqumulate_api/entities/position.rb', line 17 def quantity @quantity end |
#ticker ⇒ Object
Returns the value of attribute ticker.
17 18 19 |
# File 'lib/aqumulate_api/entities/position.rb', line 17 def ticker @ticker end |