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( = {}) if .is_a?(String) = {:message => } else = end end |