Class: Hyrax::GraphExporter::ListSourceExporter Private
- Inherits:
-
Object
- Object
- Hyrax::GraphExporter::ListSourceExporter
- 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
- #hostname ⇒ String readonly
- #id ⇒ String readonly
- #parent_url ⇒ Object readonly private
Instance Method Summary collapse
- #fetch ⇒ RDF::Graph private
-
#initialize(hostname:, id:, parent_url:, connection: CleanConnection.new(ActiveFedora.fedora.connection)) ⇒ ListSourceExporter
constructor
private
A new instance of ListSourceExporter.
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
#hostname ⇒ String (readonly)
126 127 128 |
# File 'app/services/hyrax/graph_exporter.rb', line 126 def hostname @hostname end |
#id ⇒ String (readonly)
126 |
# File 'app/services/hyrax/graph_exporter.rb', line 126 attr_reader :hostname, :id, :parent_url |
#parent_url ⇒ Object (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
#fetch ⇒ RDF::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.
130 131 132 |
# File 'app/services/hyrax/graph_exporter.rb', line 130 def fetch clean_graph_repository.find(id) end |