Class: Designate::Host
Constant Summary
Constants inherited from Client
Client::API_VERSION, Client::DOMAIN
Instance Method Summary collapse
- #destroy ⇒ Object
-
#initialize(data) ⇒ Host
constructor
A new instance of Host.
- #update(options = {}) ⇒ Object
Methods inherited from Client
#create_zone, #find_or_create_zone, #find_template_by_id, #find_zone_by_domain, #find_zone_by_id, #templates, #zones
Constructor Details
Instance Method Details
#destroy ⇒ Object
17 18 19 |
# File 'lib/designate/host.rb', line 17 def destroy delete("hosts/#{id}.xml") end |
#update(options = {}) ⇒ Object
13 14 15 |
# File 'lib/designate/host.rb', line 13 def update( = {}) put("hosts/#{id}.xml", { :host => }) end |