class StockIndex::Market
Public Class Methods
new(market)
click to toggle source
# File lib/stock_index/market.rb, line 5 def initialize(market) @market = market end
Public Instance Methods
to_iso10383()
click to toggle source
# File lib/stock_index/market.rb, line 9 def to_iso10383 case @market when 'NYSE', 'www.nyse.com' 'XNYS' when 'NASDAQ', 'www.nasdaq.com' 'XNAS' end end