class Nexpose::MultiTenantUserSummary
Attributes
auth_module[R]
auth_source[R]
email[R]
enabled[R]
full_name[R]
id[R]
locked[R]
silo_count[R]
superuser[R]
user_name[R]
Public Class Methods
new(&block)
click to toggle source
# File lib/nexpose/multi_tenant_user.rb, line 44 def initialize(&block) instance_eval(&block) if block_given? end
parse(xml)
click to toggle source
# 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