Sha256: 12b1d5d4b965c1aa034237b594f6f35594ade9c9f0c62f422ce7d72d0d7900a7
Contents?: true
Size: 638 Bytes
Versions: 1
Compression:
Stored size: 638 Bytes
Contents
# encoding: utf-8 module Blather class Stanza ## # @return [Punchblock::RayoNode] a child of RayoNode # representing the Rayo command/event contained within the stanza # def rayo_node first_child = at_xpath '*' Punchblock::RayoNode.from_xml first_child, nil, component_id if first_child rescue Punchblock::RayoNode::InvalidNodeError nil end ## # @return [String] the call ID this stanza applies to # def call_id from.node end ## # @return [String] the command ID this stanza applies to # def component_id from.resource end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
punchblock-2.0.0.beta1 | lib/punchblock/core_ext/blather/stanza.rb |