Class: Valkyrie::Persistence::Fedora::Persister::ModelConverter::CompositeProperty

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(properties) ⇒ CompositeProperty

Returns a new instance of CompositeProperty.



69
70
71
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 69

def initialize(properties)
  @properties = properties
end

Instance Attribute Details

#propertiesObject (readonly)

Returns the value of attribute properties.



68
69
70
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 68

def properties
  @properties
end

Instance Method Details

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



73
74
75
76
77
78
# File 'lib/valkyrie/persistence/fedora/persister/model_converter.rb', line 73

def to_graph(graph = RDF::Graph.new)
  properties.each do |property|
    property.to_graph(graph)
  end
  graph
end