Class: Hyrax::ListSourceExporter Deprecated

Inherits:
GraphExporter::ListSourceExporter
  • Object
show all
Defined in:
app/services/hyrax/list_source_exporter.rb

Overview

Deprecated.

see Hyrax::GraphExporter::ListSourceExporter

Retrieves the graph for an object with the internal triples removed and the uris translated to external uris.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, request, parent_url, hostname: nil) ⇒ ListSourceExporter

Returns a new instance of ListSourceExporter.

Parameters:

  • id (String)
  • request (ActionDispatch::Request)

    the http request context

  • parent_url (String)
  • hostname (String) (defaults to: nil)

    the current http host



14
15
16
17
18
# File 'app/services/hyrax/list_source_exporter.rb', line 14

def initialize(id, request, parent_url, hostname: nil)
  Deprecation.warn("#{subject.class} is deprecated and replaced with the (private) Hyrax::GraphExporter::")
  host = hostname || request.host
  super(id: id, parent_url: parent_url, hostname: host)
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



24
25
26
# File 'app/services/hyrax/list_source_exporter.rb', line 24

def request
  @request
end