Class: ForemanApi::Resources::FactValue

Inherits:
Base
  • Object
show all
Defined in:
lib/foreman_api/resources/fact_value.rb

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) doc



4
5
6
# File 'lib/foreman_api/resources/fact_value.rb', line 4

def self.doc
  @doc ||= ForemanApi.doc['resources']["fact_values"]
end

Instance Method Details

- (Array) index(params = {}, headers = {})

Returns First item: parsed data; second item: raw body

Parameters:

  • params (Hash) (defaults to: {})

    a hash of params to be passed to the service

  • headers (Hash) (defaults to: {})

    additional http headers

Options Hash (params):

  • host_id (Object)

    Part of /api/hosts/:host_id/facts path

  • order (String)

    sort results

  • page (String)

    paginate results

  • per_page (String)

    number of entries per request

  • search (String)

    filter results

Returns:

  • (Array)

    First item: parsed data; second item: raw body



17
18
19
# File 'lib/foreman_api/resources/fact_value.rb', line 17

def index(params = {}, headers = {})
  perform_call(__method__, params, headers)
end