Sha256: f6210d5faac5e8b99a4e22d785fc26cb4b872e37c049064de0ae9960fc3b8146
Contents?: true
Size: 967 Bytes
Versions: 28
Compression:
Stored size: 967 Bytes
Contents
# frozen_string_literal: true module Hyrax ## # @deprecated see Hyrax::GraphExporter::ListSourceExporter # # Retrieves the graph for an object with the internal triples removed # and the uris translated to external uris. class ListSourceExporter < GraphExporter::ListSourceExporter ## # @param [String] id # @param [ActionDispatch::Request] request the http request context # @param [String] parent_url # @param [String] hostname the current http host 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 ## # @!attribute [r] request # @deprecated use {#hostname} to access the host # @return [ActionDispatch::Request] attr_reader :request deprecation_deprecate :request end end
Version data entries
28 entries across 28 versions & 1 rubygems