class Gearbox::Types::Integer

A {Gearbox::Type} for integer values. Values will be associated with the ‘XSD.integer` type.

A {Gearbox::Resource} property can reference this type as ‘Gearbox::Types::Integer`, `Integer`, or `XSD.integer`.

@see Gearbox::Type @see rdf.rubyforge.org/RDF/Literal.html

Public Class Methods

serialize(value) click to toggle source
# File lib/gearbox/types/integer.rb, line 20
def self.serialize(value)
  RDF::Literal.new(value)
end
unserialize(value) click to toggle source
# File lib/gearbox/types/integer.rb, line 16
def self.unserialize(value)
  value.object
end