class Badgeapi::BadgeapiError
Attributes
http_status[R]
json_body[R]
message[R]
Public Class Methods
new(message = nil, http_status = nil, json_body = nil)
click to toggle source
# File lib/badgeapi/errors/badgeapi_error.rb, line 7 def initialize(message = nil, http_status = nil, json_body = nil) @message = message @http_status = http_status @json_body = json_body end
Public Instance Methods
to_s()
click to toggle source
# File lib/badgeapi/errors/badgeapi_error.rb, line 13 def to_s status_string = @http_status.nil? ? "" : "(Status #{@http_status}) " "#{status_string}#{@message}" end