Sha256: f08f0787b9a92835672cfb4fb3dc7a171dee0ecbd57285e7c4012288fc2cd0ff
Contents?: true
Size: 828 Bytes
Versions: 5
Compression:
Stored size: 828 Bytes
Contents
- unless defined?(partial) !!! XML %MachineImage{ :xmlns => CMWG_NAMESPACE } %uri=machine_images_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"] %imageLocation{ :href => @dmtfitem["imageLocation"]} %operation{ :rel => "edit", :href => machine_images_url + "/" + @dmtfitem["uri"] } %operation{ :rel => "delete", :href => machine_images_url + "/" + @dmtfitem["uri"] }
Version data entries
5 entries across 5 versions & 1 rubygems