Sha256: 1eb391653326ad0fdc5eb92c91e6775bd567b68b7c198dc1f241336ff4e14975

Contents?: true

Size: 622 Bytes

Versions: 5

Compression:

Stored size: 622 Bytes

Contents

require_relative 'base'

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(stock_symbol)
        Base.symbol(stock_symbol) do
          new IEX::Api::Company.get(stock_symbol)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
iex-ruby-client-0.4.4 lib/iex/resources/company.rb
iex-ruby-client-0.4.3 lib/iex/resources/company.rb
iex-ruby-client-0.4.2 lib/iex/resources/company.rb
iex-ruby-client-0.4.1 lib/iex/resources/company.rb
iex-ruby-client-0.4.0 lib/iex/resources/company.rb