Sha256: 3b5c811a73986a5d0f12d392b447607e7769f2c48f4ba9244cc49ff1dcb81139
Contents?: true
Size: 728 Bytes
Versions: 30
Compression:
Stored size: 728 Bytes
Contents
- unless defined?(partial) !!! XML %hardware_profile{ :href => hardware_profile_url(@profile.name), :id => @profile.name } %name< =@profile.name - @profile.each_property do |prop| - attr = { :name => prop.name, :kind => prop.kind, :unit => prop.unit } - if prop.kind == :fixed %property{ attr, :value => prop.value }/ - else %property{ attr, :value => prop.default } %param{ :operation => "create", :href => instances_url, :method => "post", :name => prop.param } - if prop.kind == :range %range{ :first => prop.first, :last => prop.last }/ - elsif prop.kind == :enum %enum - prop.values.each do |v| %entry{ :value => v }/
Version data entries
30 entries across 30 versions & 3 rubygems