class Hyrax::Ingest::Fetcher::Literal

Attributes

literal_value[R]

Public Class Methods

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

Public Instance Methods

fetch() click to toggle source
# File lib/hyrax/ingest/fetcher/literal.rb, line 18
def fetch
  @fetched_value = literal_value
end