Sha256: 592e702536643717a6e5b904c29fd6a46fed2f8dd65898fe756d71c49e7777e6
Contents?: true
Size: 540 Bytes
Versions: 11
Compression:
Stored size: 540 Bytes
Contents
module Punchblock ## # This exception may be raised if a transport error is detected. class ProtocolError < StandardError attr_accessor :name, :text, :call_id, :component_id def initialize(name = nil, text = nil, call_id = nil, component_id = nil) @name, @text, @call_id, @component_id = name, text, call_id, component_id end def to_s "#<#{self.class}: name=#{name.inspect} text=#{text.inspect} call_id=#{call_id.inspect} component_id=#{component_id.inspect}>" end alias :inspect :to_s end end
Version data entries
11 entries across 11 versions & 1 rubygems