Class: Fishbowl::Objects::User
- Inherits:
-
BaseObject
- Object
- BaseObject
- Fishbowl::Objects::User
- Defined in:
- lib/fishbowl/objects/user.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#db_id ⇒ Object
Returns the value of attribute db_id.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#initials ⇒ Object
Returns the value of attribute initials.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#user_name ⇒ Object
Returns the value of attribute user_name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(user_xml) ⇒ User
constructor
A new instance of User.
Methods inherited from BaseObject
Constructor Details
#initialize(user_xml) ⇒ User
Returns a new instance of User.
9 10 11 12 13 |
# File 'lib/fishbowl/objects/user.rb', line 9 def initialize(user_xml) @xml = user_xml parse_attributes self end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
3 4 5 |
# File 'lib/fishbowl/objects/user.rb', line 3 def active @active end |
#db_id ⇒ Object
Returns the value of attribute db_id.
3 4 5 |
# File 'lib/fishbowl/objects/user.rb', line 3 def db_id @db_id end |
#first_name ⇒ Object
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/fishbowl/objects/user.rb', line 3 def first_name @first_name end |
#initials ⇒ Object
Returns the value of attribute initials.
3 4 5 |
# File 'lib/fishbowl/objects/user.rb', line 3 def initials @initials end |
#last_name ⇒ Object
Returns the value of attribute last_name.
3 4 5 |
# File 'lib/fishbowl/objects/user.rb', line 3 def last_name @last_name end |
#user_name ⇒ Object
Returns the value of attribute user_name.
3 4 5 |
# File 'lib/fishbowl/objects/user.rb', line 3 def user_name @user_name end |
Class Method Details
.attributes ⇒ Object
5 6 7 |
# File 'lib/fishbowl/objects/user.rb', line 5 def self.attributes %w{ID UserName FirstName LastName Initials Active} end |