Class: Gearbox::Types::URI
- Inherits:
-
Object
- Object
- Gearbox::Types::URI
- Includes:
- Gearbox::Type
- Defined in:
- lib/gearbox/types/uri.rb
Overview
This type takes RDF Resource objects and provides RDF::URI objects for the ruby representation.
Class Method Summary collapse
Methods included from Gearbox::Type
Class Method Details
.serialize(value) ⇒ Object
17 18 19 |
# File 'lib/gearbox/types/uri.rb', line 17 def self.serialize(value) RDF::URI(value) end |
.unserialize(value) ⇒ Object
13 14 15 |
# File 'lib/gearbox/types/uri.rb', line 13 def self.unserialize(value) RDF::URI(value) end |