Class: Spira::Types::Native

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

Overview

This type is a native type, doing no conversion to Ruby types. The naked RDF::Value (URI, Node, Literal, etc) will be used, and no deserialization is done.

See Also:

Class Method Summary collapse

Class Method Details

.serialize(value) ⇒ Object


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

def self.serialize(value)
  value
end

.unserialize(value) ⇒ Object


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

def self.unserialize(value)
  value
end