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.
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
#hostname ⇒ String (readonly)
121 122 123 |
# File 'app/services/hyrax/graph_exporter.rb', line 121 def hostname @hostname end |
#id ⇒ String (readonly)
121 |
# File 'app/services/hyrax/graph_exporter.rb', line 121 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.
121 |
# File 'app/services/hyrax/graph_exporter.rb', line 121 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.
125 126 127 |
# File 'app/services/hyrax/graph_exporter.rb', line 125 def fetch clean_graph_repository.find(id) end |