Sha256: 9fb3ca0e94fe93f45035af99d940f0834d8655d1b3a33162c0728759ac1a21d8

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

module IEX
  module Api
    module Dividends
      def self.get(symbol, range = nil)
        connection(symbol, range).get.body
      end

      def self.connection(symbol, range = nil)
        IEX::Api.default_connection [
          symbol,
          'dividends',
          range
        ].compact.join('/')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iex-ruby-client-0.4.4 lib/iex/api/dividends.rb