Class: ForemanDiscovery::NodeAPI::Inventory

Inherits:
NodeResource show all
Defined in:
app/services/foreman_discovery/node_api/inventory.rb

Instance Method Summary collapse

Methods inherited from NodeResource

#initialize, #is_proxy?, #port, #root_path, #scheme

Constructor Details

This class inherits a constructor from ForemanDiscovery::NodeAPI::NodeResource

Instance Method Details

#facterObject



7
8
9
# File 'app/services/foreman_discovery/node_api/inventory.rb', line 7

def facter
  parse(get({}, "/facter"))
end

#urlObject



3
4
5
# File 'app/services/foreman_discovery/node_api/inventory.rb', line 3

def url
  @args[:url] + "/inventory"
end