Class: Hyrax::GraphExporter::ListSourceExporter Private

Inherits:
Object
  • Object
show all
Defined in:
app/services/hyrax/graph_exporter.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hostname:, id:, parent_url:, connection: CleanConnection.new(ActiveFedora.fedora.connection)) ⇒ ListSourceExporter

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ListSourceExporter.

API:

  • private



108
109
110
111
112
113
# File 'app/services/hyrax/graph_exporter.rb', line 108

def initialize(hostname:, id:, parent_url:, connection: CleanConnection.new(ActiveFedora.fedora.connection))
  @connection = connection
  @id = id
  @hostname = hostname
  @parent_url = parent_url
end

Instance Attribute Details

#hostnameString (readonly)

Returns:



121
122
123
# File 'app/services/hyrax/graph_exporter.rb', line 121

def hostname
  @hostname
end

#idString (readonly)

Returns:



121
# File 'app/services/hyrax/graph_exporter.rb', line 121

attr_reader :hostname, :id, :parent_url

#parent_urlObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



121
# File 'app/services/hyrax/graph_exporter.rb', line 121

attr_reader :hostname, :id, :parent_url

Instance Method Details

#fetchRDF::Graph

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

API:

  • private



125
126
127
# File 'app/services/hyrax/graph_exporter.rb', line 125

def fetch
  clean_graph_repository.find(id)
end