Sha256: b9b378c3462aeeca34a5fe2ffa210b58350cee0e154fd854c068b56859a7df1d
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 Bytes
Contents
# frozen_string_literal: true require 'uri' require 'net/http' require 'openssl' require 'json' module CoinmarketcapFree # Helper module for CoinmarketcapFree module Helper class << self def request_to_read_data(uri_string) uri = URI(uri_string) Net::HTTP.get(uri) end def generate_uri_for_data(url, data) "#{url}?#{data.map { |key, value| "#{key}=#{value}" }.join('&')}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
coinmarketcap_free-0.1.5 | lib/coinmarketcap_free/helper.rb |