Method: Jabber::Dataforms::XData#type

Defined in:
lib/xmpp4r/dataforms/x/data.rb

#typeObject

Type of this Data Form

result
  • :cancel

  • :form

  • :result

  • :submit

  • nil



49
50
51
52
53
54
55
56
57
# File 'lib/xmpp4r/dataforms/x/data.rb', line 49

def type
  case attributes['type']
    when 'cancel' then :cancel
    when 'form' then :form
    when 'result' then :result
    when 'submit' then :submit
    else nil
  end
end