Sha256: fea17fadacd80301d673852c210f051f33cd7700047837b1cb143306b988cfe4
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 Bytes
Contents
module IEX module Resources class Company < Resource property 'symbol' # stock ticker property 'company_name', from: 'companyName' # company name property 'exchange' # primary listings exchange property 'industry' property 'website' property 'description' property 'ceo', from: 'CEO' property 'issue_type', from: 'issueType' # common issue type of the stock property 'sector' def self.get(symbol) new IEX::Api::Company.get(q: symbol) rescue Faraday::ResourceNotFound => e raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iex-ruby-client-0.2.0 | lib/iex/resources/company.rb |