class Stocks::RetrievalError

An error raised when data retrieval fails

Public Class Methods

message(symbol) click to toggle source

Generates the error message that is to be displayed.

Args
  • symbol The symbol to insert into the error message

Returns

An error message representing the error

# File lib/stocks/errors.rb, line 17
def self.message(symbol)
  ERROR_MESSAGE % symbol
end
new(symbol) click to toggle source
Calls superclass method
# File lib/stocks/errors.rb, line 7
def initialize(symbol)
  super(self.class.message(symbol))
end