class NchanTools::Subscriber::Client::ErrorResponse
Attributes
bundle[RW]
caller[RW]
code[RW]
connected[RW]
msg[RW]
Public Class Methods
new(code, msg, bundle=nil, what=nil, failword=nil)
click to toggle source
# File lib/nchan_tools/pubsub.rb, line 254 def initialize(code, msg, bundle=nil, what=nil, failword=nil) self.code = code self.msg = msg self.bundle = bundle self.connected = bundle.connected? if bundle @what = what || ["handshake", "connection"] @failword = failword || " failed" end
Public Instance Methods
to_s()
click to toggle source
# File lib/nchan_tools/pubsub.rb, line 264 def to_s "#{(caller.class.name.split('::').last || self.class.name.split('::')[-2])} #{connected ? @what.last : @what.first}#{@failword}: #{msg} (code #{code})" end