Class: Hyrax::Ingest::Ingester::ActiveFedoraFileIngester
- Inherits:
-
Object
- Object
- Hyrax::Ingest::Ingester::ActiveFedoraFileIngester
- Defined in:
- lib/hyrax/ingest/ingester/active_fedora_file_ingester.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#external_url ⇒ Object
readonly
Returns the value of attribute external_url.
-
#original_filename ⇒ Object
readonly
Returns the value of attribute original_filename.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, original_filename: nil, external_url: nil, content: nil) ⇒ ActiveFedoraFileIngester
constructor
A new instance of ActiveFedoraFileIngester.
Constructor Details
#initialize(type:, original_filename: nil, external_url: nil, content: nil) ⇒ ActiveFedoraFileIngester
Returns a new instance of ActiveFedoraFileIngester.
8 9 10 11 12 13 |
# File 'lib/hyrax/ingest/ingester/active_fedora_file_ingester.rb', line 8 def initialize(type:, original_filename: nil, external_url: nil, content: nil) @type = type @original_filename = original_filename @external_url = external_url @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
6 7 8 |
# File 'lib/hyrax/ingest/ingester/active_fedora_file_ingester.rb', line 6 def content @content end |
#external_url ⇒ Object (readonly)
Returns the value of attribute external_url.
6 7 8 |
# File 'lib/hyrax/ingest/ingester/active_fedora_file_ingester.rb', line 6 def external_url @external_url end |
#original_filename ⇒ Object (readonly)
Returns the value of attribute original_filename.
6 7 8 |
# File 'lib/hyrax/ingest/ingester/active_fedora_file_ingester.rb', line 6 def original_filename @original_filename end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/hyrax/ingest/ingester/active_fedora_file_ingester.rb', line 6 def type @type end |