Class: Openfire::UserRoster

Inherits:
Object
  • Object
show all
Defined in:
lib/openfire/user_roster.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ UserRoster

Returns a new instance of UserRoster.



5
6
7
8
9
# File 'lib/openfire/user_roster.rb', line 5

def initialize(attributes={})
  attributes.each do |k,v|
    self.send("#{to_underscore(k)}=", v)
  end
end

Instance Attribute Details

#groupsObject

Returns the value of attribute groups.



3
4
5
# File 'lib/openfire/user_roster.rb', line 3

def groups
  @groups
end

#jidObject

Returns the value of attribute jid.



3
4
5
# File 'lib/openfire/user_roster.rb', line 3

def jid
  @jid
end

#nicknameObject

Returns the value of attribute nickname.



3
4
5
# File 'lib/openfire/user_roster.rb', line 3

def nickname
  @nickname
end

#subscription_typeObject

Returns the value of attribute subscription_type.



3
4
5
# File 'lib/openfire/user_roster.rb', line 3

def subscription_type
  @subscription_type
end