8
9
10
11
12
13
14
15
16
17
|
# File 'app/models/caddie/crest_data_retriever.rb', line 8
def get_markets( region_id, type_id, thread_log_file: nil )
debug = ENV[ 'EBS_DEBUG_MODE' ] && ENV[ 'EBS_DEBUG_MODE' ].downcase == 'true'
output = thread_log_file ? thread_log_file : STDERR
type_url = "https://crest-tq.eveonline.com/inventory/types/#{type_id}"
items, connections_count = get_multipage_data( "market/#{region_id}/history/?type=#{type_url}", debug, thread_log_file: thread_log_file )
[ items, connections_count ]
end
|