Class: Nexpose::MultiTenantUserSummary
- Inherits:
-
Object
- Object
- Nexpose::MultiTenantUserSummary
- Defined in:
- lib/nexpose/multi_tenant_user.rb
Instance Attribute Summary collapse
-
#auth_module ⇒ Object
readonly
Returns the value of attribute auth_module.
-
#auth_source ⇒ Object
readonly
Returns the value of attribute auth_source.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#locked ⇒ Object
readonly
Returns the value of attribute locked.
-
#silo_count ⇒ Object
readonly
Returns the value of attribute silo_count.
-
#superuser ⇒ Object
readonly
Returns the value of attribute superuser.
-
#user_name ⇒ Object
readonly
Returns the value of attribute user_name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(&block) ⇒ MultiTenantUserSummary
constructor
A new instance of MultiTenantUserSummary.
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_module ⇒ Object (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_source ⇒ Object (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 |
#email ⇒ Object (readonly)
Returns the value of attribute email.
36 37 38 |
# File 'lib/nexpose/multi_tenant_user.rb', line 36 def email @email end |
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
38 39 40 |
# File 'lib/nexpose/multi_tenant_user.rb', line 38 def enabled @enabled end |
#full_name ⇒ Object (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 |
#id ⇒ Object (readonly)
Returns the value of attribute id.
33 34 35 |
# File 'lib/nexpose/multi_tenant_user.rb', line 33 def id @id end |
#locked ⇒ Object (readonly)
Returns the value of attribute locked.
42 43 44 |
# File 'lib/nexpose/multi_tenant_user.rb', line 42 def locked @locked end |
#silo_count ⇒ Object (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 |
#superuser ⇒ Object (readonly)
Returns the value of attribute superuser.
37 38 39 |
# File 'lib/nexpose/multi_tenant_user.rb', line 37 def superuser @superuser end |
#user_name ⇒ Object (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 |