lib/netsuite/response.rb in netsuite-0.2.3 vs lib/netsuite/response.rb in netsuite-0.2.4
- old
+ new
@@ -4,18 +4,17 @@
def initialize(attributes = {})
@success = attributes[:success]
@header = attributes[:header]
@body = attributes[:body]
- @errors = attributes[:errors]
+ @errors = attributes[:errors] || []
end
def success!
@success = true
end
def success?
@success
end
-
end
end