Sha256: 0c5f2cc9570a610f0f87282878c2c80adf3be174141435265f94ea7274056e18
Contents?: true
Size: 513 Bytes
Versions: 6
Compression:
Stored size: 513 Bytes
Contents
module Rainforest class RainforestError < 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
6 entries across 6 versions & 1 rubygems