Sha256: 703fef3aa92e4d3b2bdddc66e33bf74cf873c616777c1e5ed645f8ed7fdb7b90
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 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) "#{EodApi::Constants.base_url}#{url_path}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sensei_eod_utils-0.0.5 | lib/eod_facade/base.rb |