class Controls::Asset

A representation of the Asset resource

Public Instance Methods

findings() click to toggle source

Retreives the security control and configuration findings for this {Asset} instance by UUID

@return [Array<SecurityControlFindings>]

# File lib/controls/objects/asset.rb, line 10
def findings
  @findings ||= Controls.client.findings_by_asset_uuid(uuid)
end
to_s() click to toggle source

Returns the hostname, IP, and OS of the asset

@example

"jdoe.local (192.168.1.23) - Windows 7 Professional Edition"

@return [String]

# File lib/controls/objects/asset.rb, line 20
def to_s
  %(#{host_name} (#{ipaddress}) - #{operating_system})
end