Method: ApiModel::ClassMethods#call_api_with_json
- Defined in:
- lib/api_model/class_methods.rb
#call_api_with_json(method, path, body = nil, options = {}) ⇒ Object
31 32 33 34 |
# File 'lib/api_model/class_methods.rb', line 31 def call_api_with_json(method, path, body=nil, ={}) body = body.to_json if body.is_a?(Hash) call_api method, path, .merge(body: body) end |