Class: Holding

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sharesObject

Returns the value of attribute shares.



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

def shares
  @shares
end

#symbolObject

Returns the value of attribute symbol.



3
4
5
# File 'lib/Holding.rb', line 3

def symbol
  @symbol
end