Class: Valkyrie::Persistence::Fedora::Persister::ModelConverter::GraphProperty
- Inherits:
-
Object
- Object
- Valkyrie::Persistence::Fedora::Persister::ModelConverter::GraphProperty
- Defined in:
- lib/valkyrie/persistence/fedora/persister/model_converter.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
readonly
Returns the value of attribute adapter.
-
#graph ⇒ Object
readonly
Returns the value of attribute graph.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(subject, key, graph, adapter, resource) ⇒ GraphProperty
constructor
A new instance of GraphProperty.
- #to_graph(passed_graph = RDF::Graph.new) ⇒ Object
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
#adapter ⇒ Object (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 |
#graph ⇒ Object (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 |
#key ⇒ Object (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 |
#resource ⇒ Object (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 |
#subject ⇒ Object (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 |