class Hyrax::Ingest::Fetcher::RdfUri

Attributes

uri_str[R]

Public Class Methods

new(options={}) click to toggle source
Calls superclass method Hyrax::Ingest::Fetcher::Base::new
# File lib/hyrax/ingest/fetcher/rdf_uri.rb, line 9
def initialize(options={})
  options = { uri_str: options } unless options.is_a? Hash
  @uri_str = options.delete(:uri_str)
  super
end

Public Instance Methods

fetch() click to toggle source
# File lib/hyrax/ingest/fetcher/rdf_uri.rb, line 15
def fetch
  @fetched_value ||= ::RDF::URI.new(uri_str)
end