Class: IEX::Resources::News
- Inherits:
-
IEX::Resource
- Object
- Hashie::Trash
- IEX::Resource
- IEX::Resources::News
- Defined in:
- lib/iex/resources/news.rb
Class Method Summary collapse
Class Method Details
.get(stock_symbol, range = nil) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/iex/resources/news.rb', line 13 def self.get(stock_symbol, range = nil) Base.symbol(stock_symbol) do IEX::Api::News.get(stock_symbol, range).map do |data| new data end end end |