class StockMarkets::Markets

Public Class Methods

[](stock_mic) click to toggle source
# File lib/stock_markets/markets.rb, line 12
def [](stock_mic)
  stock_markets_with_mics[stock_mic]
end
data_list() click to toggle source
# File lib/stock_markets/markets.rb, line 16
def data_list
  stock_markets_with_mics.values
end
each(&block) click to toggle source
# File lib/stock_markets/markets.rb, line 6
def each(&block)
  stock_markets_with_mics.values.each do |stock|
    block.call(stock)
  end
end
table() click to toggle source
# File lib/stock_markets/markets.rb, line 20
def table
  stock_markets_with_mics
end
table_for_names() click to toggle source
# File lib/stock_markets/markets.rb, line 24
def table_for_names
  stock_markets_with_names
end

Private Class Methods

file_data_processor(file_data_processor_klass = FileDataProcessor) click to toggle source
# File lib/stock_markets/markets.rb, line 38
def file_data_processor(file_data_processor_klass = FileDataProcessor)
  @_file_data_processor ||= file_data_processor_klass.new
end
stock_markets_with_mics() click to toggle source
# File lib/stock_markets/markets.rb, line 30
def stock_markets_with_mics
  @_stock_markets_with_mics ||= file_data_processor.load_data_for_mics!
end
stock_markets_with_names() click to toggle source
# File lib/stock_markets/markets.rb, line 34
def stock_markets_with_names
  @_stock_markets_with_names ||= file_data_processor.load_data_for_names!
end