Class: MoexIss::Market::History::Stocks
- Inherits:
-
Stocks
- Object
- Stocks
- MoexIss::Market::History::Stocks
show all
- Defined in:
- lib/moex_iss/market/history/stocks.rb
Instance Attribute Summary
Attributes inherited from Stocks
#response
Instance Method Summary
collapse
Methods inherited from Stocks
#each, #initialize
Instance Method Details
#[](key) ⇒ Object
13
14
15
|
# File 'lib/moex_iss/market/history/stocks.rb', line 13
def [](key)
@stocks_map[key]
end
|
#create_instances_stock ⇒ Object
7
8
9
10
11
|
# File 'lib/moex_iss/market/history/stocks.rb', line 7
def create_instances_stock
@response["history"].each do |data|
@stocks_map[data["TRADEDATE"]] = History::Stock.new({"history" => data})
end
end
|