Class | DeltaCloud::BaseObject |
In: |
lib/base_object.rb
|
Parent: | Object |
BaseObject model basically provide the basic operation around REST model, like defining a links between different objects, element with text values, or collection of these elements
url | -> | uri |
base_name | [R] | |
client | [R] | |
id | [R] | |
objects | [R] | |
url | [R] |
For initializing new object you require to set id, url, client and name attribute.
This method define collection of text elements inside REST model XML syntax: <addresses>
<address>127.0.0.1</address> <address>127.0.0.2</address> </addresses>
This method add link to another object in REST model XML syntax: <link rel="destroy" href="localhost/api/resource" method="post"/>