Class: Transaction
- Inherits:
-
Object
- Object
- Transaction
- Includes:
- DataMapper::Resource
- Defined in:
- lib/stockfolio/transaction.rb
Instance Method Summary collapse
Instance Method Details
#order_name ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/stockfolio/transaction.rb', line 14 def order_name if quantity > 0 return "BUY " else return "SELL" end end |
#real_fee ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/stockfolio/transaction.rb', line 22 def real_fee if fee == nil return 0 else return fee end end |