module Ethon::Easy::Queryable

def build_query_pairs(hash)

Returns:
  • (Array) - The array of query pairs.

Parameters:
  • hash (Hash) -- The hash to go through.

Other tags:
    Example: Build query pairs. -
def build_query_pairs(hash)
  return [hash] if hash.is_a?(String)
  pairs = []
  recursively_generate_pairs(hash, nil, pairs)
  pairs
end