Method: Vines::Services::CouchModels::Upload#to_result
- Defined in:
- lib/vines/services/storage/couchdb/upload.rb
#to_result ⇒ Object
42 43 44 45 |
# File 'lib/vines/services/storage/couchdb/upload.rb', line 42 def to_result to_hash.clone.keep_if {|k, v| KEYS.include?(k) } .tap {|h| h['id'] = h.delete('_id') } end |