Sha256: 53007f510c2486d660367962c6925bf781e650e2e2a2dfdfa039ba712e2ae8a3
Contents?: true
Size: 504 Bytes
Versions: 3
Compression:
Stored size: 504 Bytes
Contents
module Gocoin class GocoinError < 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gocoin-0.1.4 | lib/gocoin/errors/gocoin_error.rb |
gocoin-0.1.3 | lib/gocoin/errors/gocoin_error.rb |
gocoin-0.1.2 | lib/gocoin/errors/gocoin_error.rb |