Method: Blather::Stanza::Iq::Command#actions
- Defined in:
- lib/blather/stanza/iq/command.rb
#actions ⇒ Blather::XMPPNode
Command actions accessor If a command actions element exists it will be returned. Otherwise a new actions element will be created and returned
214 215 216 217 218 219 220 |
# File 'lib/blather/stanza/iq/command.rb', line 214 def actions unless a = self.command.find_first('ns:actions', :ns => self.class.registered_ns) (self.command << (a = XMPPNode.new('actions', self.document))) a.namespace = self.command.namespace end a end |