Sha256: d7801b9db99145faa3da6585da5a5f64307b70c47601ede7827ce3be7a84b793

Contents?: true

Size: 321 Bytes

Versions: 17

Compression:

Stored size: 321 Bytes

Contents

module Shoppe
  class Error < StandardError

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

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
shoppe-1.1.2 lib/shoppe/error.rb
shoppe-1.1.1 lib/shoppe/error.rb
shoppe-1.1.0 lib/shoppe/error.rb
shoppe-1.0.9 lib/shoppe/error.rb
shoppe-1.0.8 lib/shoppe/error.rb
kylekthompson-shoppe-1.0.7 lib/shoppe/error.rb
shoppe-1.0.7 lib/shoppe/error.rb
shoppe-1.0.6 lib/shoppe/error.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/shoppe-1.0.5/lib/shoppe/error.rb
shoppe-1.0.5 lib/shoppe/error.rb
shoppe-1.0.3 lib/shoppe/error.rb
shoppe-1.0.2 lib/shoppe/error.rb
shoppe-1.0.1 lib/shoppe/error.rb
shoppe-1.0.0 lib/shoppe/error.rb
shoppe-0.0.21 lib/shoppe/error.rb
shoppe-0.0.20 lib/shoppe/error.rb
shoppe-0.0.19 lib/shoppe/error.rb