Class: Dynectastic::NodeFactory

Inherits:
Resource
  • Object
show all
Defined in:
lib/dynectastic/factories/node_factory.rb

Instance Attribute Summary

Attributes inherited from Resource

#factory, #last_request, #session

Instance Method Summary collapse

Methods inherited from Resource

#attributes=, #delete, #get, #initialize, #post, #put

Constructor Details

This class inherits a constructor from Dynectastic::Resource

Instance Method Details

#destroy(zone, name) ⇒ Object



5
6
7
8
9
# File 'lib/dynectastic/factories/node_factory.rb', line 5

def destroy(zone, name)
  delete("#{ entity_base }/#{ zone }/#{ name }")
rescue DynectError
  # already deleted?
end

#entity_baseObject



11
12
13
# File 'lib/dynectastic/factories/node_factory.rb', line 11

def entity_base
  "/REST/Node"
end