Sha256: 088a9afa239c924f721cb0a6e57e98bffdb481118c694bfe75c99e3a47ebd539

Contents?: true

Size: 335 Bytes

Versions: 5

Compression:

Stored size: 335 Bytes

Contents

# frozen_string_literal: true

module EodFacade
  class Eod < ::EodFacade::Base
    class << self
      def call(symbol, params = {})
        data = make_request(url_path(symbol), params.merge(fmt: 'json'))
        Oj.load(data)
      end

      private

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sensei_eod_utils-0.0.7 lib/eod_facade/eod.rb
sensei_eod_utils-0.0.6 lib/eod_facade/eod.rb
sensei_eod_utils-0.0.5 lib/eod_facade/eod.rb
sensei_eod_utils-0.0.4 lib/eod_facade/eod.rb
sensei_eod_utils-0.0.3 lib/eod_facade/eod.rb