lib/gateway/ErrorReport.rb in mundipagg_sdk-1.0.2 vs lib/gateway/ErrorReport.rb in mundipagg_sdk-1.0.3

- old
+ new

@@ -1,18 +1,18 @@ -class ErrorReport - - attr_accessor :Category - - attr_accessor :ErrorItemCollection - - - def initialize - @ErrorItemCollection = Array.new; - end - - def to_json - hash = {} - instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) } - hash - end - -end +class ErrorReport + + attr_accessor :Category + + attr_accessor :ErrorItemCollection + + + def initialize + @ErrorItemCollection = Array.new; + end + + def to_json + hash = {} + instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) } + hash + end + +end