lib/aptible/resource/errors.rb in aptible-resource-1.1.0 vs lib/aptible/resource/errors.rb in aptible-resource-1.1.1
- old
+ new
@@ -1,8 +1,9 @@
module Aptible
module Resource
class Errors
+ # rubocop:disable DuplicateMethods
attr_accessor :status_code, :messages, :full_messages
def self.from_exception(exception)
new.tap do |errors|
response_json = JSON.parse(exception.response.body)
@@ -21,8 +22,9 @@
end
def any?
full_messages.any?
end
+ # rubocop:enable DuplicateMethods
end
end
end