Method: Jabber::Dataforms::XData#type=
- Defined in:
- lib/vendor/xmpp4r/lib/xmpp4r/dataforms/x/data.rb
#type=(t) ⇒ Object
Set the type (see type)
61 62 63 64 65 66 67 68 69 |
# File 'lib/vendor/xmpp4r/lib/xmpp4r/dataforms/x/data.rb', line 61 def type=(t) case t when :cancel then attributes['type'] = 'cancel' when :form then attributes['type'] = 'form' when :result then attributes['type'] = 'result' when :submit then attributes['type'] = 'submit' else attributes['type'] = nil end end |