Sha256: 57a5fa30ce908045eb189c7df5c49b4c1a4e08dd06d2131d11d7d8352eefe7f5
Contents?: true
Size: 469 Bytes
Versions: 20
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true require 'oj' module EodFacade class Fundamentals < ::EodFacade::Base class << self def call(symbol) response = make_request(url_path(symbol)) unless response.success? raise ArgumentError, "Error fetching fundamentals data for #{symbol}" end response.parsed_response end private def url_path(symbol) "/fundamentals/#{symbol}" end end end end
Version data entries
20 entries across 20 versions & 1 rubygems