lib/ig_markets/dealing_platform/account_methods.rb
def build_url_parameters(options)
        options[:to] ||= Time.now

        options[:from] = options.fetch(:from).utc.strftime('%FT%T')
        options[:to] = options.fetch(:to).utc.strftime('%FT%T')

        options[:pageSize] = 500
        options[:type] = options[:type].to_s.upcase if options.key? :type

        options
      end
# Parses and formats options shared by {#activities} and {#transactions} into a set of URL parameters.
Parses and formats options shared by {#activities} and {#transactions} into a set of URL parameters.
Parses and formats options shared by { #activities } and { #transactions } into a set of URL parameters .
def build_url_parameters(options)
        options[:to] ||= Time.now
        options[:from] = options.fetch(:from).utc.strftime('%FT%T')
        options[:to] = options.fetch(:to).utc.strftime('%FT%T')
        options[:pageSize] = 500
        options[:type] = options[:type].to_s.upcase if options.key? :type
        options
      end
def build_url_parameters ( options ) options [ :to ] ||= Time . now options [ :from ] = options . fetch ( :from ) . utc . strftime ( '%FT%T' ) options [ :to ] = options . fetch ( :to ) . utc . strftime ( '%FT%T' ) options [ :pageSize ] = 500 options [ :type ] = options [ :type ] . to_s . upcase if options . key? :type options end
Parses and formats options shared by {#activities} and {#transactions} into a set of URL parameters.
Parses and formats options shared by { #activities } and { #transactions } into a set of URL parameters .
options