Class: Hyrax::Ingest::Fetcher::PremisEventType
- Defined in:
- lib/hyrax/ingest/fetcher/premis_event_type.rb
Instance Attribute Summary collapse
-
#abbr ⇒ Object
readonly
Returns the value of attribute abbr.
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(options = {}) ⇒ PremisEventType
constructor
A new instance of PremisEventType.
Methods inherited from Base
Methods included from HasLogger
Methods included from HasReport
Constructor Details
#initialize(options = {}) ⇒ PremisEventType
Returns a new instance of PremisEventType.
16 17 18 19 20 |
# File 'lib/hyrax/ingest/fetcher/premis_event_type.rb', line 16 def initialize(={}) = { abbr: } unless .is_a? Hash @abbr = .delete(:abbr) super end |
Instance Attribute Details
#abbr ⇒ Object (readonly)
Returns the value of attribute abbr.
14 15 16 |
# File 'lib/hyrax/ingest/fetcher/premis_event_type.rb', line 14 def abbr @abbr end |
Instance Method Details
#fetch ⇒ Object
22 23 24 |
# File 'lib/hyrax/ingest/fetcher/premis_event_type.rb', line 22 def fetch @fetched_value ||= Hyrax::Preservation::PremisEventType.find_by_abbr(@abbr).uri end |