Sha256: d80dfefd8b406c53d15c35815f285716b0d639cbd9b95bf8798489b33155f025
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
module IEX module Endpoints module Earnings def earnings(symbol, options = {}) get("stock/#{symbol}/earnings", options)['earnings'].map do |data| IEX::Resources::Earnings.new(data) end rescue Faraday::ResourceNotFound => e raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body]) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
iex-ruby-client-1.1.0 | lib/iex/endpoints/earnings.rb |
iex-ruby-client-1.0.1 | lib/iex/endpoints/earnings.rb |
iex-ruby-client-1.0.0 | lib/iex/endpoints/earnings.rb |