Class: ProxyAPI::Hdm
- Inherits:
-
Resource
- Object
- Resource
- ProxyAPI::Hdm
- Defined in:
- app/services/proxy_api/hdm.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Hdm
constructor
A new instance of Hdm.
- #key(host, key) ⇒ Object
- #keys(host) ⇒ Object
Constructor Details
#initialize(args) ⇒ Hdm
Returns a new instance of Hdm.
3 4 5 6 |
# File 'app/services/proxy_api/hdm.rb', line 3 def initialize(args) @url = "#{args[:url]}/hdm/" super end |
Instance Method Details
#key(host, key) ⇒ Object
12 13 14 |
# File 'app/services/proxy_api/hdm.rb', line 12 def key(host, key) get("/nodes/#{host.fqdn}/keys/#{key}") end |
#keys(host) ⇒ Object
8 9 10 |
# File 'app/services/proxy_api/hdm.rb', line 8 def keys(host) get("/nodes/#{host.fqdn}/keys") end |