lib/access/error.rb in access-1.1.7 vs lib/access/error.rb in access-2.0.0

- old
+ new

@@ -1,10 +1,16 @@ module Access - module Error - + class Error class AuthenticationError < StandardError; end class NoAccessToken < AuthenticationError; end class InvalidResponseFormat < TypeError; end + attr_reader :message, :status_code, :status + + def initialize(response_status, response_code, response_message = nil) + @status_code = response_code + @status = response_status + @message = response_message + end end end