Sha256: ff9fee53262f5019a7af3e581b3a4d47304725ecc0402dfb4426985913ca87b5
Contents?: true
Size: 849 Bytes
Versions: 5
Compression:
Stored size: 849 Bytes
Contents
- unless defined?(partial) !!! XML %Volume{ :xmlns => CMWG_NAMESPACE } %uri=volumes_url + "/" + @dmtfitem["uri"] %name=@dmtfitem["name"] %description=@dmtfitem["description"] %created=@dmtfitem["created"] - if @dmtfitem["property"] - if @dmtfitem["property"]["name"] && @dmtfitem["property"]["content"] - property_object = {"#{@dmtfitem['property']['name']}" => {"content" => @dmtfitem["property"]["content"]}} - else - property_object = @dmtfitem["property"] - property_object.each_pair do |key, value| %property{ :name => key}=value["content"] %capacity{ :quantity => @dmtfitem["capacity"]["quantity"], :units => @dmtfitem["capacity"]["units"]} %operation{ :rel => "edit", :href => volumes_url + "/" + @dmtfitem["uri"] } %operation{ :rel => "delete", :href => volumes_url + "/" + @dmtfitem["uri"] }
Version data entries
5 entries across 5 versions & 1 rubygems