Sha256: de605ac4e2fc5f1e7b1ee54fa57a7f92334a0de8e3f2fe9cfecc6712c8745b0a
Contents?: true
Size: 852 Bytes
Versions: 9
Compression:
Stored size: 852 Bytes
Contents
module LiveQA ## # Configuration Error class ConfigurationError < StandardError; end ## # Missing Implementation Error class MissingImplementation < StandardError; end ## # Request to API Error class RequestError < StandardError; end ## # Method unknown for the request class UnknownRequestMethod < StandardError; end ## # Request to API Error class RequestError < StandardError attr_reader :http_body attr_reader :http_status attr_reader :http_status_type attr_reader :http_message def initialize(response, message: nil) @http_status = response.code.to_i @http_status_type = response.code_type @http_body = response.body @http_message = message || response.message end def to_s "Status #{http_status}: #{http_message}" end end end
Version data entries
9 entries across 9 versions & 1 rubygems