Class: Fishbowl::Objects::User

Inherits:
BaseObject show all
Defined in:
lib/fishbowl/objects/user.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#send_request

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

#activeObject

Returns the value of attribute active.



3
4
5
# File 'lib/fishbowl/objects/user.rb', line 3

def active
  @active
end

#db_idObject

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_nameObject

Returns the value of attribute first_name.



3
4
5
# File 'lib/fishbowl/objects/user.rb', line 3

def first_name
  @first_name
end

#initialsObject

Returns the value of attribute initials.



3
4
5
# File 'lib/fishbowl/objects/user.rb', line 3

def initials
  @initials
end

#last_nameObject

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_nameObject

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

.attributesObject



5
6
7
# File 'lib/fishbowl/objects/user.rb', line 5

def self.attributes
  %w{ID UserName FirstName LastName Initials Active}
end