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