Class: ActiveFedora::Property
- Inherits:
-
Object
- Object
- ActiveFedora::Property
- Defined in:
- lib/active_fedora/property.rb
Instance Attribute Summary collapse
-
#instance_variable_name ⇒ Object
Returns the value of attribute instance_variable_name.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #field ⇒ Object
-
#initialize(model, name, type, options = {}) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(model, name, type, options = {}) ⇒ Property
Returns a new instance of Property.
6 7 8 9 |
# File 'lib/active_fedora/property.rb', line 6 def initialize(model, name, type, = {}) @name = name @instance_variable_name = "@#{@name}" end |
Instance Attribute Details
#instance_variable_name ⇒ Object
Returns the value of attribute instance_variable_name.
4 5 6 |
# File 'lib/active_fedora/property.rb', line 4 def instance_variable_name @instance_variable_name end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/active_fedora/property.rb', line 4 def name @name end |
Instance Method Details
#field ⇒ Object
11 12 |
# File 'lib/active_fedora/property.rb', line 11 def field end |