# File lib/couch_potato/persistence/json.rb, line 14 def to_hash (self.class.properties).inject({}) do |props, property| property.serialize(props, self) props end.merge('ruby_class' => self.class.name).merge(id_and_rev_json) end