class RecombeeApiClient::ResponseError

Response is not 200 or 201

Attributes

description[R]
request[R]
status_code[R]

Public Class Methods

new(request, status_code, description) click to toggle source
# File lib/recombee_api_client/errors.rb, line 12
def initialize(request, status_code, description)
  @status_code = status_code
  @description = description
end

Public Instance Methods

to_s() click to toggle source
# File lib/recombee_api_client/errors.rb, line 17
def to_s
  "ResponseError: status: #{@status_code}, description: #{@description}"
end