lib/ig_markets/request_formatter.rb
def format_request_body(body)
        return '' if body.nil?

        result = "  Body:\n    "
        result += JSON.pretty_generate(JSON.parse(body)).gsub("\n", "\n    ")

        "#{result}\n"
      end
# Formats a request options hash that is ready to be passed to `Excon`.
#
# @param [Hash] options The request options.
#
# @return [String] The formatted request.
Formats a request options hash that is ready to be passed to `Excon`.
Formats a request options hash that is ready to be passed to ` Excon ` .
def format_request_body(body)
        return '' if body.nil?
        result = "  Body:\n    "
        result += JSON.pretty_generate(JSON.parse(body)).gsub("\n", "\n    ")
        "#{result}\n"
      end
def format_request_body ( body ) return '' if body . nil? result = "  Body:\n    " result += JSON . pretty_generate ( JSON . parse ( body ) ) . gsub ( "\n" , "\n    " ) "#{result}\n" end
Formats a request options hash that is ready to be passed to `Excon`.
Formats a request options hash that is ready to be passed to ` Excon ` .
The formatted request.
The formatted request .
String
body
options The request options.
options The request options .