class Nexpose::SiloSummary
Attributes
assets[R]
The asset count for this silo
description[R]
A description of the silo.
id[R]
The silo ID.
max_assets[R]
The asset count limit for this silo.
max_hosted_assets[R]
The hosted asset count limit for this silo.
max_users[R]
The user count limit for this silo.
name[R]
The silo name.
profile_id[R]
The ID of the silo profile being used for this silo.
users[R]
The user count for this silo
Public Class Methods
new(&block)
click to toggle source
# File lib/nexpose/silo.rb, line 334 def initialize(&block) instance_eval(&block) if block_given? end
parse(xml)
click to toggle source
# File lib/nexpose/silo.rb, line 338 def self.parse(xml) new do @id = xml.attributes['id'] @name = xml.attributes['name'] @description = xml.attributes['description'] @profile_id = xml.attributes['silo-profile-id'] xml.elements.each('LicenseSummary') do |license| @assets = license.attributes['assets'] @max_assets = license.attributes['max-assets'] @max_hosted_assets = license.attributes['max-hosted-assets'] @users = license.attributes['users'] @max_users = license.attributes['max-users'] end end end