class Punchblock::Translator::Asterisk::Channel
Constants
- NORMALIZATION_REGEXP
Public Class Methods
new(other)
click to toggle source
Calls superclass method
# File lib/punchblock/translator/asterisk/channel.rb, line 9 def self.new(other) other.is_a?(self) ? other : super end
Public Instance Methods
bridged?()
click to toggle source
# File lib/punchblock/translator/asterisk/channel.rb, line 25 def bridged? @bridged ||= (prefix || suffix) end
name()
click to toggle source
# File lib/punchblock/translator/asterisk/channel.rb, line 13 def name matchdata[:name] end
prefix()
click to toggle source
# File lib/punchblock/translator/asterisk/channel.rb, line 17 def prefix matchdata[:prefix] end
suffix()
click to toggle source
# File lib/punchblock/translator/asterisk/channel.rb, line 21 def suffix matchdata[:suffix] end
to_s()
click to toggle source
# File lib/punchblock/translator/asterisk/channel.rb, line 29 def to_s __getobj__ end
Private Instance Methods
matchdata()
click to toggle source
# File lib/punchblock/translator/asterisk/channel.rb, line 35 def matchdata @matchdata ||= __getobj__.match(NORMALIZATION_REGEXP) end