lib/razorpay/errors/razorpay_error.rb in razorpay-2.1.0.pre vs lib/razorpay/errors/razorpay_error.rb in razorpay-2.1.0

- old
+ new

@@ -1,10 +1,10 @@ module Razorpay # Default Error class for any unknown errors class Error < StandardError attr_reader :code, :status - def initialize(code, status) + def initialize(code = nil, status = nil) @code = code @status = status end end end