Sha256: a20c50ed3edb14a469666285c50854fd95e2e479cff6ae2fb0873453141bd670

Contents?: true

Size: 327 Bytes

Versions: 7

Compression:

Stored size: 327 Bytes

Contents

# frozen_string_literal: true

require 'oj'

module EodFacade
  class Fundamentals < ::EodFacade::Base
    class << self
      def call(symbol)
        data = make_request(url_path(symbol))
        Oj.load(data)
      end

      private

      def url_path(symbol)
        "/fundamentals/#{symbol}"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sensei_eod_utils-0.0.6 lib/eod_facade/fundamentals.rb
sensei_eod_utils-0.0.5 lib/eod_facade/fundamentals.rb
sensei_eod_utils-0.0.4 lib/eod_facade/fundamentals.rb
sensei_eod_utils-0.0.3 lib/eod_facade/fundamentals.rb
sensei_eod_utils-0.0.2 lib/eod_facade/fundamentals.rb
sensei_eod_utils-0.0.1 lib/eod_facade/fundamentals.rb
sensei_eod_utils-0.0.0 lib/eod_facade/fundamentals.rb