Class: Spira::Types::URI

Inherits:
Object
  • Object
show all
Includes:
Spira::Type
Defined in:
lib/spira/types/uri.rb

Overview

This type takes RDF Resource objects and provides RDF::URI objects for the ruby representation.

Class Method Summary collapse

Class Method Details

.serialize(value) ⇒ Object



17
18
19
# File 'lib/spira/types/uri.rb', line 17

def self.serialize(value)
  RDF::URI(value)
end

.unserialize(value) ⇒ Object



13
14
15
# File 'lib/spira/types/uri.rb', line 13

def self.unserialize(value)
  RDF::URI(value)
end