Sha256: 16daba04df7315e832bb81cf710180c7d2b2572128eb3b6c782039409f55792c

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

module Spira::Types

  ##
  # This type takes RDF Resource objects and provides RDF::URI objects for the
  # ruby representation.
  #
  # @see Spira::Type
  # @see https://ruby-rdf.github.io/rdf/RDF/URI.html
  class URI

    include Spira::Type

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

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

    register_alias :uri
    register_alias RDF::URI

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spira-3.3.0 lib/spira/types/uri.rb