Method: Blather::Stanza::Iq::Command#actions

Defined in:
lib/blather/stanza/iq/command.rb

#actionsBlather::XMPPNode

Command actions accessor If a command actions element exists it will be returned. Otherwise a new actions element will be created and returned

Returns:



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