Sha256: c4773aa01e01ea5576ec849a4ffc9098e834b9ea8e0db2e879ff6ed5b1056557

Contents?: true

Size: 598 Bytes

Versions: 3

Compression:

Stored size: 598 Bytes

Contents

require "uuidtools"
require "time"
xml.instruct! :xml, :version=>"1.0" 
xml.feed("xmlns" => "http://www.w3.org/2005/Atom", "xml:lang" => "en_US") do
  xml.id("urn:uuid:4a11e26e-239c-11dd-adf9-001ec2186a45")
  xml.title("Select Control")
  xml.subtitle("Yes, this is silly, but you get the idea.")
  xml.updated(Time.now.iso8601)
  for selection in selections
    xml.entry do
      xml.id(
        UUID.sha1_create(UUID_URL_NAMESPACE, "#" + selection.value).to_uri
      )
      xml.title(selection.label)
      xml.link("#" + selection.value)
      xml.updated(Time.now.iso8601)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
instrument-0.1.0 spec/control_templates/select_control.atom.rxml
instrument-0.1.1 spec/control_templates/select_control.atom.rxml
instrument-0.1.2 spec/control_templates/select_control.atom.rxml