class Hyrax::Ingest::Fetcher::PremisEventType

Attributes

abbr[R]

Public Class Methods

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

Public Instance Methods

fetch() click to toggle source
# File lib/hyrax/ingest/fetcher/premis_event_type.rb, line 22
def fetch
  @fetched_value ||= Hyrax::Preservation::PremisEventType.find_by_abbr(@abbr).uri
end