Class: BaaChan::Trade
- Inherits:
-
Object
- Object
- BaaChan::Trade
- Defined in:
- lib/baa_chan/trade.rb
Instance Attribute Summary collapse
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#price ⇒ Object
Returns the value of attribute price.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#ticker ⇒ Object
Returns the value of attribute ticker.
Instance Method Summary collapse
-
#initialize(operation, ticker, quantity, price) ⇒ Trade
constructor
A new instance of Trade.
Constructor Details
#initialize(operation, ticker, quantity, price) ⇒ Trade
Returns a new instance of Trade.
7 8 9 10 11 12 |
# File 'lib/baa_chan/trade.rb', line 7 def initialize(operation, ticker, quantity, price) @operation = operation @ticker = ticker @quantity = quantity @price = price end |
Instance Attribute Details
#operation ⇒ Object
Returns the value of attribute operation.
5 6 7 |
# File 'lib/baa_chan/trade.rb', line 5 def operation @operation end |
#price ⇒ Object
Returns the value of attribute price.
5 6 7 |
# File 'lib/baa_chan/trade.rb', line 5 def price @price end |
#quantity ⇒ Object
Returns the value of attribute quantity.
5 6 7 |
# File 'lib/baa_chan/trade.rb', line 5 def quantity @quantity end |
#ticker ⇒ Object
Returns the value of attribute ticker.
5 6 7 |
# File 'lib/baa_chan/trade.rb', line 5 def ticker @ticker end |