Method: Shoppe::Error#initialize

Defined in:
lib/shoppe/error.rb

#initialize(options = {}) ⇒ Error

Returns a new instance of Error.



4
5
6
7
8
9
10
# File 'lib/shoppe/error.rb', line 4

def initialize(options = {})
  if options.is_a?(String)
    @options = {:message => options}
  else
    @options = options
  end
end