Class: Blather::Stanza
- Defined in:
- lib/punchblock/core_ext/blather/stanza.rb,
lib/punchblock/core_ext/blather/stanza/presence.rb
Defined Under Namespace
Classes: Presence
Instance Method Summary collapse
-
#call_id ⇒ String
The call ID this stanza applies to.
-
#component_id ⇒ String
The command ID this stanza applies to.
-
#rayo_node ⇒ Punchblock::RayoNode
A child of RayoNode representing the Rayo command/event contained within the stanza.
Instance Method Details
#call_id ⇒ String
Returns the call ID this stanza applies to.
15 16 17 |
# File 'lib/punchblock/core_ext/blather/stanza.rb', line 15 def call_id from.node end |
#component_id ⇒ String
Returns the command ID this stanza applies to.
22 23 24 |
# File 'lib/punchblock/core_ext/blather/stanza.rb', line 22 def component_id from.resource end |
#rayo_node ⇒ Punchblock::RayoNode
Returns a child of RayoNode representing the Rayo command/event contained within the stanza.
7 8 9 10 |
# File 'lib/punchblock/core_ext/blather/stanza.rb', line 7 def rayo_node first_child = children.first Punchblock::RayoNode.import first_child, call_id, component_id if first_child end |