Class: Hyrax::Ingest::Fetcher::RdfUri
- Defined in:
- lib/hyrax/ingest/fetcher/rdf_uri.rb
Instance Attribute Summary collapse
-
#uri_str ⇒ Object
readonly
Returns the value of attribute uri_str.
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(options = {}) ⇒ RdfUri
constructor
A new instance of RdfUri.
Methods inherited from Base
Methods included from HasLogger
Methods included from HasReport
Constructor Details
#initialize(options = {}) ⇒ RdfUri
Returns a new instance of RdfUri.
9 10 11 12 13 |
# File 'lib/hyrax/ingest/fetcher/rdf_uri.rb', line 9 def initialize(={}) = { uri_str: } unless .is_a? Hash @uri_str = .delete(:uri_str) super end |
Instance Attribute Details
#uri_str ⇒ Object (readonly)
Returns the value of attribute uri_str.
7 8 9 |
# File 'lib/hyrax/ingest/fetcher/rdf_uri.rb', line 7 def uri_str @uri_str end |
Instance Method Details
#fetch ⇒ Object
15 16 17 |
# File 'lib/hyrax/ingest/fetcher/rdf_uri.rb', line 15 def fetch @fetched_value ||= ::RDF::URI.new(uri_str) end |