Method: ApiResource::Formats::FileUploadFormat#encode
- Defined in:
- lib/api_resource/formats/file_upload_format.rb
#encode(hash, options = nil) ⇒ Hash
Implementation of #encode - encodes data to POST to the server
40 41 42 43 44 45 46 |
# File 'lib/api_resource/formats/file_upload_format.rb', line 40 def encode(hash, = nil) ret = {} hash.each_pair do |k,v| ret[k] = self.encode_value(v) end ret end |