Class: ActiveFedora::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/active_fedora/property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_model, name, _type, _options = {}) ⇒ Property

Returns a new instance of Property.



5
6
7
8
# File 'lib/active_fedora/property.rb', line 5

def initialize(_model, name, _type, _options = {})
  @name = name
  @instance_variable_name = "@#{@name}"
end

Instance Attribute Details

#instance_variable_nameObject

Returns the value of attribute instance_variable_name.



3
4
5
# File 'lib/active_fedora/property.rb', line 3

def instance_variable_name
  @instance_variable_name
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/active_fedora/property.rb', line 3

def name
  @name
end

Instance Method Details

#fieldObject



10
# File 'lib/active_fedora/property.rb', line 10

def field; end