class Xfers::XfersError

Attributes

http_status[R]
message[R]

Public Class Methods

new(message=nil, http_status=nil) click to toggle source
# File lib/xfers/errors/xfers_error.rb, line 6
def initialize(message=nil, http_status=nil)
  @message = message
  @http_status = http_status
end

Public Instance Methods

to_s() click to toggle source
# File lib/xfers/errors/xfers_error.rb, line 11
def to_s
  status_string = @http_status.nil? ? '' : "(Status #{@http_status}) "
  "#{status_string}#{@message}"
end