lib/ig_markets/request_formatter.rb
# 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(options)
        result = "#{options[:method].to_s.upcase} #{options[:url]}\n"
        result += format_request_headers options[:headers]
        result += format_request_body options[:body]
        result
      end
def format_request ( options ) result = "#{options[:method].to_s.upcase} #{options[:url]}\n" result += format_request_headers options [ :headers ] result += format_request_body options [ :body ] result 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
options
options The request options.
options The request options .