Module: IEX::Endpoints::Company

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

Instance Method Summary collapse

Instance Method Details

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


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

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