Class: Valkyrie::Persistence::Fedora::ListNode::Builder

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, graph) ⇒ Builder

Returns a new instance of Builder.



65
66
67
68
# File 'lib/valkyrie/persistence/fedora/list_node.rb', line 65

def initialize(uri, graph)
  @uri = uri
  @graph = graph
end

Instance Attribute Details

#graphObject (readonly)

Returns the value of attribute graph.



64
65
66
# File 'lib/valkyrie/persistence/fedora/list_node.rb', line 64

def graph
  @graph
end

#uriObject (readonly)

Returns the value of attribute uri.



64
65
66
# File 'lib/valkyrie/persistence/fedora/list_node.rb', line 64

def uri
  @uri
end

Instance Method Details

#populate(instance) ⇒ Object



70
71
72
73
74
75
# File 'lib/valkyrie/persistence/fedora/list_node.rb', line 70

def populate(instance)
  instance.proxy_for = resource.proxy_for.first
  instance.proxy_in = resource.proxy_in.first
  instance.next_uri = resource.next.first
  instance.prev_uri = resource.prev.first
end