Sha256: 380f92ce9c77c1dc30a106e9a642302f978ac9199b866ed54ed6641c93b8c7f5
Contents?: true
Size: 613 Bytes
Versions: 5
Compression:
Stored size: 613 Bytes
Contents
class ApiRequestFailure < ApiError def initialize(subject, tags, response, data = {}) super(subject, tags, data.merge({ api_response: { status: response.code + ' ' + response.message, type: response.content_type, length: response.content_length, body: response.body.force_encoding('UTF-8'), }, })) end end
Version data entries
5 entries across 5 versions & 1 rubygems