lib/amfetamine/base.rb in amfetamine-0.1.5 vs lib/amfetamine/base.rb in amfetamine-0.2.0

- old
+ new

@@ -30,9 +30,18 @@ def id @attributes['id'] end + def to_hash + attributes + end + + def to_hash_with_head + {class_name.to_sym => to_hash} + end + + private :'id=' def self.amfetamine_attributes(*attrs)