lib/nk_alpe/api/base.rb
def generate_query(hash)
          array_query = hash.each_with_object([]) do |(key, value), array|
            array << "#{key}=#{value}" unless value.nil?
          end
          array_query.empty? ? '' : "?#{array_query.join('&')}"
        end
# Convert Hash into queryble string format
#
# @return [String]
Convert Hash into queryble string format
Convert Hash into queryble string format
def generate_query(hash)
          array_query = hash.each_with_object([]) do |(key, value), array|
            array << "#{key}=#{value}" unless value.nil?
          end
          array_query.empty? ? '' : "?#{array_query.join('&')}"
        end
def generate_query ( hash ) array_query = hash . each_with_object ( [ ] ) do | ( key , value ) , array | array << "#{key}=#{value}" unless value . nil? end array_query . empty? ? '' : "?#{array_query.join('&')}" end
Convert Hash into queryble string format
Convert Hash into queryble string format
None
String
hash