Sha256: 17852338d42df455adeeb69a557f1b24934d38dc3f9b2ade0f0ba2f330c859f1
Contents?: true
Size: 482 Bytes
Versions: 5
Compression:
Stored size: 482 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: EodApi::Constants.api_key ), format: :json) end private def full_url(url_path) "#{EodApi::Constants.base_url}#{url_path}" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems