Class: StockMarkets::Markets
- Inherits:
-
Object
- Object
- StockMarkets::Markets
- Extended by:
- Enumerable
- Defined in:
- lib/stock_markets/markets.rb
Class Method Summary collapse
- .[](stock_mic) ⇒ Object
- .data_list ⇒ Object
- .each(&block) ⇒ Object
- .table ⇒ Object
- .table_for_names ⇒ Object
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_list ⇒ Object
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 |
.table ⇒ Object
20 21 22 |
# File 'lib/stock_markets/markets.rb', line 20 def table stock_markets_with_mics end |
.table_for_names ⇒ Object
24 25 26 |
# File 'lib/stock_markets/markets.rb', line 24 def table_for_names stock_markets_with_names end |