Class: MyTradeWizard::Position
- Inherits:
-
Object
- Object
- MyTradeWizard::Position
- Defined in:
- lib/mytradewizard/position.rb
Instance Attribute Summary collapse
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#stock ⇒ Object
readonly
Returns the value of attribute stock.
Instance Method Summary collapse
-
#initialize(stock, size) ⇒ Position
constructor
A new instance of Position.
Constructor Details
#initialize(stock, size) ⇒ Position
Returns a new instance of Position.
7 8 9 10 |
# File 'lib/mytradewizard/position.rb', line 7 def initialize(stock, size) @stock = stock @size = size end |
Instance Attribute Details
#size ⇒ Object (readonly)
Returns the value of attribute size.
5 6 7 |
# File 'lib/mytradewizard/position.rb', line 5 def size @size end |
#stock ⇒ Object (readonly)
Returns the value of attribute stock.
4 5 6 |
# File 'lib/mytradewizard/position.rb', line 4 def stock @stock end |