Class: Xml::Kit::Id

Inherits:
Object
  • Object
show all
Defined in:
lib/xml/kit/id.rb

Overview

This class is used primary for generating ID. www.w3.org/2001/XMLSchema.xsd

Class Method Summary collapse

Class Method Details

.generateObject

Generate an ID that conforms to the XML Schema. www.w3.org/2001/XMLSchema.xsd



10
11
12
# File 'lib/xml/kit/id.rb', line 10

def self.generate
  "_#{SecureRandom.uuid}"
end