Class: ActiveFedora::Orders::ListNode::Builder
- Inherits:
 - 
      Object
      
        
- Object
 - ActiveFedora::Orders::ListNode::Builder
 
 
- Defined in:
 - lib/active_fedora/orders/list_node.rb
 
Instance Attribute Summary collapse
- 
  
    
      #graph  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute graph.
 - 
  
    
      #uri  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute uri.
 
Instance Method Summary collapse
- 
  
    
      #initialize(uri, graph)  ⇒ Builder 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Builder.
 - #populate(instance) ⇒ Object
 
Constructor Details
#initialize(uri, graph) ⇒ Builder
Returns a new instance of Builder.
      131 132 133 134  | 
    
      # File 'lib/active_fedora/orders/list_node.rb', line 131 def initialize(uri, graph) @uri = uri @graph = graph end  | 
  
Instance Attribute Details
#graph ⇒ Object (readonly)
Returns the value of attribute graph.
      130 131 132  | 
    
      # File 'lib/active_fedora/orders/list_node.rb', line 130 def graph @graph end  | 
  
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
      130 131 132  | 
    
      # File 'lib/active_fedora/orders/list_node.rb', line 130 def uri @uri end  | 
  
Instance Method Details
#populate(instance) ⇒ Object
      136 137 138 139 140 141  | 
    
      # File 'lib/active_fedora/orders/list_node.rb', line 136 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  |