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.



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

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.



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

def instance_variable_name
  @instance_variable_name
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#fieldObject



11
12
# File 'lib/active_fedora/property.rb', line 11

def field
end