Exception: Medici::StockSymbolError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/medici/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(symbol = nil, message = nil) ⇒ StockSymbolError

Returns a new instance of StockSymbolError.



5
6
7
8
# File 'lib/medici/errors.rb', line 5

def initialize(symbol = nil, message = nil)
  super(message)
  @symbol = symbol
end

Instance Attribute Details

#symbolObject (readonly)

Returns the value of attribute symbol.



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

def symbol
  @symbol
end