Class: Jabber::MUC::XMUCUserInvite

Class | Jabber::MUC::XMUCUserInvite
In: | lib/xmpp4r/muc/x/mucuserinvite.rb
Parent: | XMPPElement

### Methods

from from= new reason reason= set_from set_reason set_to to to=

### Public Class methods

new(to=nil, reason=nil)

[Source]

        # File lib/xmpp4r/muc/x/mucuserinvite.rb, line 10
    10:       def initialize(to=nil, reason=nil)
    11:         super()
    12:         set_to(to)
    13:         set_reason(reason)
    14:       end

### Public Instance methods

from()

[Source]

        # File lib/xmpp4r/muc/x/mucuserinvite.rb, line 29
    29:       def from
    30:         attributes['from'].nil? ? nil : JID.new(attributes['from'])
    31:       end

from=(j)

[Source]

        # File lib/xmpp4r/muc/x/mucuserinvite.rb, line 33
    33:       def from=(j)
    34:         attributes['from'] = (j.nil? ? nil : j.to_s)
    35:       end

reason()

[Source]

        # File lib/xmpp4r/muc/x/mucuserinvite.rb, line 42
    42:       def reason
    43:         first_element_text('reason')
    44:       end

reason=(s)

[Source]

        # File lib/xmpp4r/muc/x/mucuserinvite.rb, line 46
    46:       def reason=(s)
    47:         if s
    48:           replace_element_text('reason', s)
    49:         else
    50:           delete_elements('reason')
    51:         end
    52:       end

set_from(j)

[Source]

        # File lib/xmpp4r/muc/x/mucuserinvite.rb, line 37
    37:       def set_from(j)
    38:         self.from = j
    39:         self
    40:       end

set_reason(s)

[Source]

        # File lib/xmpp4r/muc/x/mucuserinvite.rb, line 54
    54:       def set_reason(s)
    55:         self.reason = s
    56:         self
    57:       end

set_to(j)

[Source]

        # File lib/xmpp4r/muc/x/mucuserinvite.rb, line 24
    24:       def set_to(j)
    25:         self.to = j
    26:         self
    27:       end

to()

[Source]

        # File lib/xmpp4r/muc/x/mucuserinvite.rb, line 16
    16:       def to
    17:         attributes['to'].nil? ? nil : JID.new(attributes['to'])
    18:       end

to=(j)

[Source]

        # File lib/xmpp4r/muc/x/mucuserinvite.rb, line 20
    20:       def to=(j)
    21:         attributes['to'] = j.nil? ? nil : j.to_s
    22:       end

[Validate]