Sha256: fc8310b5708eb66aa129bc4c2bf497ca7aaf57a73b1f9c5f5b053112a94847d3
Contents?: true
Size: 488 Bytes
Versions: 47
Compression:
Stored size: 488 Bytes
Contents
# frozen_string_literal: true require 'httparty' module EodFacade class Base class << self def make_request(url_path, params = {}) HTTParty.get(full_url(url_path), query: params.merge( api_token: EodFacade::Constants.api_key ), format: :json) end private def full_url(url_path) "#{EodFacade::Constants.base_url}#{url_path}" end end end end
Version data entries
47 entries across 47 versions & 1 rubygems