Class: Inforouter::User

Inherits:
Record
  • Object
show all
Defined in:
lib/inforouter/user.rb

Overview

A User defines an infoRouter user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Record

#initialize

Constructor Details

This class inherits a constructor from Inforouter::Record

Instance Attribute Details

#authentication_authorityObject

User authentication authority.



21
22
23
# File 'lib/inforouter/user.rb', line 21

def authentication_authority
  @authentication_authority
end

#domainObject

User domain.



7
8
9
# File 'lib/inforouter/user.rb', line 7

def domain
  @domain
end

#emailObject

User email.



15
16
17
# File 'lib/inforouter/user.rb', line 15

def email
  @email
end

#enabledObject

User enabled.



25
26
27
# File 'lib/inforouter/user.rb', line 25

def enabled
  @enabled
end

#first_nameObject

User first name.



11
12
13
# File 'lib/inforouter/user.rb', line 11

def first_name
  @first_name
end

#idObject

User ID.



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

def id
  @id
end

#last_logonObject

User last login date



17
18
19
# File 'lib/inforouter/user.rb', line 17

def last_logon
  @last_logon
end

#last_nameObject

User last name.



13
14
15
# File 'lib/inforouter/user.rb', line 13

def last_name
  @last_name
end

#last_password_changeObject

User last password change



19
20
21
# File 'lib/inforouter/user.rb', line 19

def last_password_change
  @last_password_change
end

#read_onlyObject

User read only.



23
24
25
# File 'lib/inforouter/user.rb', line 23

def read_only
  @read_only
end

#user_nameObject

User username.



9
10
11
# File 'lib/inforouter/user.rb', line 9

def user_name
  @user_name
end

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/inforouter/user.rb', line 31

def enabled?
  @enabled
end

#nameObject



35
36
37
# File 'lib/inforouter/user.rb', line 35

def name
  [@first_name, @last_name].join(' ').strip
end

#read_only?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/inforouter/user.rb', line 27

def read_only?
  @read_only
end