class Punchblock::ProtocolError

This exception may be raised if a transport error is detected.

Attributes

call_id[RW]
component_id[RW]
name[RW]
text[RW]

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source
# File lib/punchblock/protocol_error.rb, line 19
def eql?(other)
  other.is_a?(self.class) && [:name, :text, :call_id, :component_id].all? { |f| self.__send__(f) == other.__send__(f) }
end
Also aliased as: ==
inspect()
Alias for: to_s
setup(name = nil, text = nil, call_id = nil, component_id = nil) click to toggle source
# File lib/punchblock/protocol_error.rb, line 9
def setup(name = nil, text = nil, call_id = nil, component_id = nil)
  @name, @text, @call_id, @component_id = name, text, call_id, component_id
  self
end
to_s() click to toggle source
# File lib/punchblock/protocol_error.rb, line 14
def to_s
  "#<#{self.class}: name=#{name.inspect} text=#{text.inspect} call_id=#{call_id.inspect} component_id=#{component_id.inspect}>"
end
Also aliased as: inspect