Class: EasyData::RDF::CERT
- Inherits:
-
Namespaces
- Object
- Namespaces
- EasyData::RDF::CERT
- Defined in:
- lib/data_models/namespaces/cert.rb
Constant Summary collapse
- @@uri =
"http://www.w3.org/ns/auth/cert#"
- @@properties =
{"decimal" => "", "hex" => "", "identity" => "", "public_key" => "", }
Class Method Summary collapse
-
.get_uri ⇒ Object
Return Namespace URI.
-
.properties ⇒ Object
Return a list of Namespace’s properties.
- .properties_form ⇒ Object
-
.to_s(property, uri, value) ⇒ Object
Return tag to rdf doc.
Methods inherited from Namespaces
Class Method Details
.get_uri ⇒ Object
Return Namespace URI
12 13 14 |
# File 'lib/data_models/namespaces/cert.rb', line 12 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
21 22 23 |
# File 'lib/data_models/namespaces/cert.rb', line 21 def self.properties @@properties.keys end |
.properties_form ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/data_models/namespaces/cert.rb', line 25 def self.properties_form list = {} @@properties.keys.each do |property| list[property] = property end list end |
.to_s(property, uri, value) ⇒ Object
Return tag to rdf doc
16 17 18 |
# File 'lib/data_models/namespaces/cert.rb', line 16 def self.to_s(property,uri,value) @@properties[property].gsub("%uri%",uri).gsub('%value%',value) end |