Sha256: aab6e2b357975b4b9bc8a069404c19bc9dfe187d9ed237e6759327e0b5ab26e3

Contents?: true

Size: 271 Bytes

Versions: 12

Compression:

Stored size: 271 Bytes

Contents

class StockIndex

  class Market

    def initialize(market)
      @market = market
    end

    def to_iso10383
      case @market
        when 'NYSE', 'www.nyse.com'
          'XNYS'
        when 'NASDAQ', 'www.nasdaq.com'
          'XNAS'
      end
    end

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
stock_index-0.8.8 lib/stock_index/market.rb
stock_index-0.8.7 lib/stock_index/market.rb
stock_index-0.8.6 lib/stock_index/market.rb
stock_index-0.8.5 lib/stock_index/market.rb
stock_index-0.8.4 lib/stock_index/market.rb
stock_index-0.8.3 lib/stock_index/market.rb
stock_index-0.8.2 lib/stock_index/market.rb
stock_index-0.8.1 lib/stock_index/market.rb
stock_index-0.8.0 lib/stock_index/market.rb
stock_index-0.7.0 lib/stock_index/market.rb
stock_index-0.6.0 lib/stock_index/market.rb
stock_index-0.5.1 lib/stock_index/market.rb