class Andpush::JsonSerializer
Constants
- APPLICATION_JSON
- JSON_REQUEST_HEADERS
Public Instance Methods
before_request(uri, body, headers, options)
click to toggle source
# File lib/andpush/json_handler.rb, line 31 def before_request(uri, body, headers, options) headers = headers.merge(JSON_REQUEST_HEADERS) body = body.nil? || body.is_a?(String) ? body : body.to_json [uri, body, headers, options] end