Class: Hyrax::GraphExporter::ListSourceExporter Private

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

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.

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.



113
114
115
116
117
118
# File 'app/services/hyrax/graph_exporter.rb', line 113

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:

  • (String)


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

def hostname
  @hostname
end

#idString (readonly)

Returns:

  • (String)


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

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.



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

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:

  • (RDF::Graph)


130
131
132
# File 'app/services/hyrax/graph_exporter.rb', line 130

def fetch
  clean_graph_repository.find(id)
end