lib/algolia/error.rb in algolia-2.0.0.pre.beta.1 vs lib/algolia/error.rb in algolia-2.0.0.pre.beta.2
- old
+ new
@@ -15,11 +15,10 @@
# An exception class raised when the REST API returns an error.
# The error code and message will be parsed out of the HTTP response,
# which is also included in the response attribute.
#
class AlgoliaHttpError < AlgoliaError
- attr_accessor :code
- attr_accessor :message
+ attr_accessor :code, :message
def initialize(code, message)
self.code = code
self.message = message
super("#{self.code}: #{self.message}")