Class: Nexpose::MultiTenantUserSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/nexpose/multi_tenant_user.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ MultiTenantUserSummary

Returns a new instance of MultiTenantUserSummary.



44
45
46
# File 'lib/nexpose/multi_tenant_user.rb', line 44

def initialize(&block)
  instance_eval &block if block_given?
end

Instance Attribute Details

#auth_moduleObject (readonly)

Returns the value of attribute auth_module.



39
40
41
# File 'lib/nexpose/multi_tenant_user.rb', line 39

def auth_module
  @auth_module
end

#auth_sourceObject (readonly)

Returns the value of attribute auth_source.



40
41
42
# File 'lib/nexpose/multi_tenant_user.rb', line 40

def auth_source
  @auth_source
end

#emailObject (readonly)

Returns the value of attribute email.



36
37
38
# File 'lib/nexpose/multi_tenant_user.rb', line 36

def email
  @email
end

#enabledObject (readonly)

Returns the value of attribute enabled.



38
39
40
# File 'lib/nexpose/multi_tenant_user.rb', line 38

def enabled
  @enabled
end

#full_nameObject (readonly)

Returns the value of attribute full_name.



34
35
36
# File 'lib/nexpose/multi_tenant_user.rb', line 34

def full_name
  @full_name
end

#idObject (readonly)

Returns the value of attribute id.



33
34
35
# File 'lib/nexpose/multi_tenant_user.rb', line 33

def id
  @id
end

#lockedObject (readonly)

Returns the value of attribute locked.



42
43
44
# File 'lib/nexpose/multi_tenant_user.rb', line 42

def locked
  @locked
end

#silo_countObject (readonly)

Returns the value of attribute silo_count.



41
42
43
# File 'lib/nexpose/multi_tenant_user.rb', line 41

def silo_count
  @silo_count
end

#superuserObject (readonly)

Returns the value of attribute superuser.



37
38
39
# File 'lib/nexpose/multi_tenant_user.rb', line 37

def superuser
  @superuser
end

#user_nameObject (readonly)

Returns the value of attribute user_name.



35
36
37
# File 'lib/nexpose/multi_tenant_user.rb', line 35

def user_name
  @user_name
end

Class Method Details

.parse(xml) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/nexpose/multi_tenant_user.rb', line 48

def self.parse(xml)
  new do
    @id = xml.attributes['id'].to_i
    @full_name = xml.attributes['full-name']
    @user_name = xml.attributes['user-name']
    @email = xml.attributes['email']
    @superuser = xml.attributes['superuser'].to_s.chomp.eql?('true')
    @enabled = xml.attributes['enabled'].to_s.chomp.eql?('true')
    @auth_module = xml.attributes['auth-module']
    @auth_source = xml.attributes['auth-source']
    @silo_count = xml.attributes['silo-count'].to_i
    @locked = xml.attributes['locked'].to_s.chomp.eql?('true')
  end
end