Class: ForemanOpenscap::Asset

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/foreman_openscap/asset.rb

Instance Method Summary collapse

Instance Method Details

#hostObject



9
10
11
# File 'app/models/foreman_openscap/asset.rb', line 9

def host
  fetch_asset('Host::Base')
end

#hostgroupObject



13
14
15
# File 'app/models/foreman_openscap/asset.rb', line 13

def hostgroup
  fetch_asset('Hostgroup')
end

#nameObject



17
18
19
# File 'app/models/foreman_openscap/asset.rb', line 17

def name
  assetable.name
end