Class: Openfire::User
- Inherits:
-
Object
- Object
- Openfire::User
- Defined in:
- lib/openfire/user.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(attributes = {}) ⇒ User
Returns a new instance of User.
5 6 7 8 9 |
# File 'lib/openfire/user.rb', line 5 def initialize(attributes={}) attributes.each do |k,v| self.send("#{to_underscore(k)}=", v) end end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/openfire/user.rb', line 3 def email @email end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/openfire/user.rb', line 3 def name @name end |
#properties ⇒ Object
Returns the value of attribute properties.
3 4 5 |
# File 'lib/openfire/user.rb', line 3 def properties @properties end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/openfire/user.rb', line 3 def username @username end |