Module: IEX::Endpoints::Logo

Included in:
Api::Client
Defined in:
lib/iex/endpoints/logo.rb

Instance Method Summary collapse

Instance Method Details

#logo(symbol, options = {}) ⇒ Object



4
5
6
7
8
# File 'lib/iex/endpoints/logo.rb', line 4

def (symbol, options = {})
  IEX::Resources::Logo.new(get("stock/#{symbol.downcase}/logo", options))
rescue Faraday::ResourceNotFound => e
  raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body])
end