Class: MyTradeWizard::Position

Inherits:
Object
  • Object
show all
Defined in:
lib/mytradewizard/position.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sizeObject (readonly)

Returns the value of attribute size.



5
6
7
# File 'lib/mytradewizard/position.rb', line 5

def size
  @size
end

#stockObject (readonly)

Returns the value of attribute stock.



4
5
6
# File 'lib/mytradewizard/position.rb', line 4

def stock
  @stock
end