Class: ActiveFedora::DelegatedAttribute
- Inherits:
 - 
      Object
      
        
- Object
 - ActiveFedora::DelegatedAttribute
 
 
- Defined in:
 - lib/active_fedora/delegated_attribute.rb
 
Overview
Represents the mapping between a model attribute and a property
Direct Known Subclasses
Instance Attribute Summary collapse
- 
  
    
      #field  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute field.
 - 
  
    
      #multiple  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute multiple.
 
Instance Method Summary collapse
- 
  
    
      #initialize(field, args = {})  ⇒ DelegatedAttribute 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of DelegatedAttribute.
 
Constructor Details
#initialize(field, args = {}) ⇒ DelegatedAttribute
Returns a new instance of DelegatedAttribute.
      6 7 8 9  | 
    
      # File 'lib/active_fedora/delegated_attribute.rb', line 6 def initialize(field, args = {}) self.field = field self.multiple = args.fetch(:multiple, false) end  | 
  
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field.
      4 5 6  | 
    
      # File 'lib/active_fedora/delegated_attribute.rb', line 4 def field @field end  | 
  
#multiple ⇒ Object
Returns the value of attribute multiple.
      4 5 6  | 
    
      # File 'lib/active_fedora/delegated_attribute.rb', line 4 def multiple @multiple end  |