Sha256: 65d2b4b97c000f57fd0cbdb75a70d51939709533ad612ebad54ad23d79a98f0b

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

module IEX
  module Endpoints
    module Income
      def income(symbol, options = {})
        get("stock/#{symbol}/income", 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

1 entries across 1 versions & 1 rubygems

Version Path
iex-ruby-client-1.1.0 lib/iex/endpoints/income.rb