Sha256: c2a0162fc644b2dd36fdbe33e56b1d3eacb8c587203b5be0b37dfac06d38d223
Contents?: true
Size: 614 Bytes
Versions: 38
Compression:
Stored size: 614 Bytes
Contents
module Maestrano module API module Error class BaseError < StandardError attr_reader :message attr_reader :http_status attr_reader :http_body attr_reader :json_body def initialize(message=nil, http_status=nil, http_body=nil, json_body=nil) @message = message @http_status = http_status @http_body = http_body @json_body = json_body end def to_s status_string = @http_status.nil? ? "" : "(Status #{@http_status}) " "#{status_string}#{@message}" end end end end end
Version data entries
38 entries across 38 versions & 2 rubygems