Module: Legion::Extensions::ServiceNow::Cmdb::Meta::Runners::Meta
Instance Method Summary
collapse
#connection, #fetch_oauth2_token, #handle_response
Instance Method Details
17
18
19
20
|
# File 'lib/legion/extensions/service_now/cmdb/meta/runners/meta.rb', line 17
def get_class_meta(class_name:, **)
resp = connection(**).get("/api/now/doc/meta/#{class_name}")
{ meta: resp.body['result'] }
end
|
#get_hierarchy ⇒ Object
12
13
14
15
|
# File 'lib/legion/extensions/service_now/cmdb/meta/runners/meta.rb', line 12
def get_hierarchy(**)
resp = connection(**).get('/api/now/doc/meta/hierarchy')
{ hierarchy: resp.body['result'] }
end
|