class EodFacade::Base
Public Class Methods
make_request(url_path, params = {})
click to toggle source
# File lib/eod_facade/base.rb, line 8 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 Class Methods
full_url(url_path)
click to toggle source
# File lib/eod_facade/base.rb, line 18 def full_url(url_path) "#{EodFacade::Constants.base_url}#{url_path}" end