class Rlocu2::APIError

Attributes

code[R]
detail[R]
status[R]

Public Class Methods

new(response) click to toggle source
# File lib/rlocu2/client.rb, line 75
def initialize(response)
  @code     = response['http_status']
  @status   = response['errorType']
  @detail   = response['error']
end

Public Instance Methods

message() click to toggle source
# File lib/rlocu2/client.rb, line 81
def message
  "#{@status}: #{@detail} (#{@code})"
end
Also aliased as: to_s
to_s()
Alias for: message