module ActiveFedora::AttributeMethods::Write
Public Instance Methods
write_attribute(attribute_name, value)
click to toggle source
# File lib/active_fedora/attribute_methods/write.rb, line 36 def write_attribute(attribute_name, value) raise ActiveModel::MissingAttributeError, "can't write unknown attribute `#{attribute_name}'" unless self.class.properties.key?(attribute_name) attributes[attribute_name] = value end
Private Instance Methods
attribute=(attribute_name, value)
click to toggle source
# File lib/active_fedora/attribute_methods/write.rb, line 44 def attribute=(attribute_name, value) write_attribute(attribute_name, value) end