Class: Valkyrie::Persistence::Fedora::Persister::ModelConverter::GraphProperty

Inherits:
Object
  • Object
show all
Defined in:
lib/valkyrie/persistence/fedora/persister/model_converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subject, key, graph, adapter, resource) ⇒ GraphProperty

Returns a new instance of GraphProperty.



83
84
85
86
87
88
89
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 83

def initialize(subject, key, graph, adapter, resource)
  @subject = subject
  @key = key
  @graph = graph
  @adapter = adapter
  @resource = resource
end

Instance Attribute Details

#adapterObject (readonly)

Returns the value of attribute adapter.



82
83
84
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 82

def adapter
  @adapter
end

#graphObject (readonly)

Returns the value of attribute graph.



82
83
84
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 82

def graph
  @graph
end

#keyObject (readonly)

Returns the value of attribute key.



82
83
84
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 82

def key
  @key
end

#resourceObject (readonly)

Returns the value of attribute resource.



82
83
84
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 82

def resource
  @resource
end

#subjectObject (readonly)

Returns the value of attribute subject.



82
83
84
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 82

def subject
  @subject
end

Instance Method Details

#to_graph(passed_graph = RDF::Graph.new) ⇒ Object



91
92
93
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 91

def to_graph(passed_graph = RDF::Graph.new)
  passed_graph << graph
end