Sha256: f157be85fdcb979b0bb12312b74e34393c9cf1d0f0e7f0bba23130c1dd7c3b3b
Contents?: true
Size: 407 Bytes
Versions: 10
Compression:
Stored size: 407 Bytes
Contents
module IEX module Endpoints module Income def income(symbol, options = {}) (get("stock/#{symbol}/income", { token: publishable_token }.merge(options))['income'] || []).map do |data| IEX::Resources::Income.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