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