Class: IEX::Resources::Quote

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

Class Method Summary collapse

Class Method Details

.get(symbol) ⇒ Object



52
53
54
55
56
# File 'lib/iex/resources/quote.rb', line 52

def self.get(symbol)
  new IEX::Api::Quote.get(symbol)
rescue Faraday::ResourceNotFound => e
  raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body])
end