Class: IEX::Resources::Earnings

Inherits:
IEX::Resource show all
Defined in:
lib/iex/resources/earnings.rb

Class Method Summary collapse

Class Method Details

.get(stock_symbol) ⇒ Object


22
23
24
25
26
27
28
# File 'lib/iex/resources/earnings.rb', line 22

def self.get(stock_symbol)
  Base.symbol(stock_symbol) do
    IEX::Api::Earnings.get(stock_symbol)['earnings'].map do |data|
      new data
    end
  end
end