Class: Hyrax::Ingest::Ingester::ActiveFedoraFileIngester

Inherits:
Object
  • Object
show all
Defined in:
lib/hyrax/ingest/ingester/active_fedora_file_ingester.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (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_urlObject (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_filenameObject (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

#typeObject (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