lib/ripple/attribute_methods.rb in ripple-0.8.0.beta2 vs lib/ripple/attribute_methods.rb in ripple-0.8.0
- old
+ new
@@ -47,12 +47,10 @@
super(properties.keys)
end
end
module InstanceMethods
- attr_accessor :key
-
# A copy of the values of all attributes in the Document. The result
# is not memoized, so use sparingly. This does not include associated objects,
# nor embedded documents.
# @return [Hash] all document attributes, by key
def attributes
@@ -72,13 +70,9 @@
__send__("#{k}=",v)
else
__send__(:attribute=,k,v)
end
end
- end
-
- def key=(value)
- @key = value.to_s
end
# @private
def initialize(attrs={})
super()