Class: ForemanApi::Resources::HostgroupClass
- Inherits:
-
Base
- Object
- Base
- ForemanApi::Resources::HostgroupClass
- Defined in:
- lib/foreman_api/resources/hostgroup_class.rb
Class Method Summary (collapse)
Instance Method Summary (collapse)
-
- (Array) create(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) destroy(params = {}, headers = {})
First item: parsed data; second item: raw body.
-
- (Array) index(params = {}, headers = {})
First item: parsed data; second item: raw body.
Class Method Details
+ (Object) doc
4 5 6 |
# File 'lib/foreman_api/resources/hostgroup_class.rb', line 4 def self.doc @doc ||= ForemanApi.doc['resources']["hostgroup_classes"] end |
Instance Method Details
- (Array) create(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
23 24 25 |
# File 'lib/foreman_api/resources/hostgroup_class.rb', line 23 def create(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) destroy(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
33 34 35 |
# File 'lib/foreman_api/resources/hostgroup_class.rb', line 33 def destroy(params = {}, headers = {}) perform_call(__method__, params, headers) end |
- (Array) index(params = {}, headers = {})
Returns First item: parsed data; second item: raw body
13 14 15 |
# File 'lib/foreman_api/resources/hostgroup_class.rb', line 13 def index(params = {}, headers = {}) perform_call(__method__, params, headers) end |