Class: AqumulateAPI::Position

Inherits:
Entity
  • Object
show all
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

Entity::SOURCE_ASSOCIATIONS

Instance Attribute Summary collapse

Method Summary

Methods inherited from Entity

from_source, #initialize

Constructor Details

This class inherits a constructor from AqumulateAPI::Entity

Instance Attribute Details

#asset_idObject

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_typeObject

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_basisObject

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

#dateObject

Returns the value of attribute date.



17
18
19
# File 'lib/aqumulate_api/entities/position.rb', line 17

def date
  @date
end

#descriptionObject

Returns the value of attribute description.



17
18
19
# File 'lib/aqumulate_api/entities/position.rb', line 17

def description
  @description
end

#idObject

Returns the value of attribute id.



17
18
19
# File 'lib/aqumulate_api/entities/position.rb', line 17

def id
  @id
end

#market_valueObject

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

#priceObject

Returns the value of attribute price.



17
18
19
# File 'lib/aqumulate_api/entities/position.rb', line 17

def price
  @price
end

#quantityObject

Returns the value of attribute quantity.



17
18
19
# File 'lib/aqumulate_api/entities/position.rb', line 17

def quantity
  @quantity
end

#tickerObject

Returns the value of attribute ticker.



17
18
19
# File 'lib/aqumulate_api/entities/position.rb', line 17

def ticker
  @ticker
end