Class: FaradayMiddleware::MultiJson::EncodeJson

Inherits:
EncodeJson
  • Object
show all
Defined in:
lib/faraday_middleware/multi_json.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ EncodeJson

Returns a new instance of EncodeJson.


17
18
19
# File 'lib/faraday_middleware/multi_json.rb', line 17

def initialize(app, *)
  super(app)
end

Instance Method Details

#encode(data) ⇒ Object


21
22
23
# File 'lib/faraday_middleware/multi_json.rb', line 21

def encode(data)
  ::MultiJson.dump data
end