Class: Controls::Asset
- Inherits:
-
Dish::Plate
- Object
- Dish::Plate
- Controls::Asset
- Defined in:
- lib/controls/objects/asset.rb
Overview
A representation of the Asset resource
Instance Method Summary collapse
-
#findings ⇒ Array<SecurityControlFindings>
Retreives the security control and configuration findings for this Asset instance by UUID.
-
#to_s ⇒ String
Returns the hostname, IP, and OS of the asset.
Instance Method Details
#findings ⇒ Array<SecurityControlFindings>
Retreives the security control and configuration findings for this Controls::Asset instance by UUID
10 11 12 |
# File 'lib/controls/objects/asset.rb', line 10 def findings @findings ||= Controls.client.findings_by_asset_uuid(uuid) end |
#to_s ⇒ String
Returns the hostname, IP, and OS of the asset
20 21 22 |
# File 'lib/controls/objects/asset.rb', line 20 def to_s %(#{host_name} (#{ipaddress}) - #{}) end |