Sha256: b4c969c871659a86fb4fff7ce6cb53fecfa133da857008f085997b847110703d
Contents?: true
Size: 492 Bytes
Versions: 10
Compression:
Stored size: 492 Bytes
Contents
module IEX module Endpoints module Dividends def dividends(symbol, range = nil, options = {}) get([ 'stock', symbol, 'dividends', range ].compact.join('/'), { token: publishable_token }.merge(options)).map do |data| IEX::Resources::Dividends.new(data) end rescue Faraday::ResourceNotFound => e raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body]) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems