Class: ForemanApi::Resources::Home

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

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) doc



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

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

Instance Method Details

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

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

Returns:

  • (Array)

    First item: parsed data; second item: raw body



12
13
14
# File 'lib/foreman_api/resources/home.rb', line 12

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

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

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

Returns:

  • (Array)

    First item: parsed data; second item: raw body



20
21
22
# File 'lib/foreman_api/resources/home.rb', line 20

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