class Punchblock::Ref
A rayo Ref
message. This provides the command ID in response to execution of a command.
Public Instance Methods
call_id()
click to toggle source
# File lib/punchblock/ref.rb, line 22 def call_id case scheme when 'xmpp' RubyJID.new(uri.opaque).node when nil uri.path else uri.opaque end end
component_id()
click to toggle source
# File lib/punchblock/ref.rb, line 40 def component_id case scheme when 'xmpp' RubyJID.new(uri.opaque).resource else call_id end end
domain()
click to toggle source
# File lib/punchblock/ref.rb, line 33 def domain case scheme when 'xmpp' RubyJID.new(uri.opaque).domain end end
rayo_attributes()
click to toggle source
# File lib/punchblock/ref.rb, line 49 def rayo_attributes {}.tap do |atts| atts[:uri] = uri if uri end end
scheme()
click to toggle source
# File lib/punchblock/ref.rb, line 18 def scheme uri.scheme end
uri=(other)
click to toggle source
Calls superclass method
# File lib/punchblock/ref.rb, line 14 def uri=(other) super URI(other) end