Class: Openfire::UserRoster
- Inherits:
-
Object
- Object
- Openfire::UserRoster
- Defined in:
- lib/openfire/user_roster.rb
Instance Attribute Summary collapse
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#jid ⇒ Object
Returns the value of attribute jid.
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#subscription_type ⇒ Object
Returns the value of attribute subscription_type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UserRoster
constructor
A new instance of UserRoster.
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
#groups ⇒ Object
Returns the value of attribute groups.
3 4 5 |
# File 'lib/openfire/user_roster.rb', line 3 def groups @groups end |
#jid ⇒ Object
Returns the value of attribute jid.
3 4 5 |
# File 'lib/openfire/user_roster.rb', line 3 def jid @jid end |
#nickname ⇒ Object
Returns the value of attribute nickname.
3 4 5 |
# File 'lib/openfire/user_roster.rb', line 3 def nickname @nickname end |
#subscription_type ⇒ Object
Returns the value of attribute subscription_type.
3 4 5 |
# File 'lib/openfire/user_roster.rb', line 3 def subscription_type @subscription_type end |