Sha256: 8fe32c7b690c167b3c18f87ac3898b58dd86c534b54f09347de52d7a6e3d2dfa

Contents?: true

Size: 345 Bytes

Versions: 50

Compression:

Stored size: 345 Bytes

Contents

module Hydra::ContentNegotiation
  # Finds a graph given a connection and ID.
  class GraphFinder
    attr_reader :connection, :id
    def initialize(connection, id)
      @connection = connection
      @id = id
    end

    def graph
      connection.get(uri).graph
    end

    def uri
      ActiveFedora::Base.id_to_uri(id)
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
hydra-core-13.0.0 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-12.1.0 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-12.0.2 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-11.0.7 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-12.0.1 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-11.0.6 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-11.0.5 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-11.0.4 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-12.0.0 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-11.0.1 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-11.0.0 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-11.0.0.rc2 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-10.7.0 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-10.6.2 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-10.6.1 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-10.6.0 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-10.5.1 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-11.0.0.rc1 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-10.5.0 app/models/hydra/content_negotiation/graph_finder.rb
hydra-core-10.4.0 app/models/hydra/content_negotiation/graph_finder.rb