Class: StockMarkets::Markets

Inherits:
Object
  • Object
show all
Extended by:
Enumerable
Defined in:
lib/stock_markets/markets.rb

Class Method Summary collapse

Class Method Details

.[](stock_mic) ⇒ Object



12
13
14
# File 'lib/stock_markets/markets.rb', line 12

def [](stock_mic)
  stock_markets_with_mics[stock_mic]
end

.data_listObject



16
17
18
# File 'lib/stock_markets/markets.rb', line 16

def data_list
  stock_markets_with_mics.values
end

.each(&block) ⇒ Object



6
7
8
9
10
# File 'lib/stock_markets/markets.rb', line 6

def each(&block)
  stock_markets_with_mics.values.each do |stock|
    block.call(stock)
  end
end

.tableObject



20
21
22
# File 'lib/stock_markets/markets.rb', line 20

def table
  stock_markets_with_mics
end

.table_for_namesObject



24
25
26
# File 'lib/stock_markets/markets.rb', line 24

def table_for_names
  stock_markets_with_names
end