Module: Caddie::CrestDataRetriever
- Included in:
- CrestPriceHistoryUpdate
- Defined in:
- app/models/caddie/crest_data_retriever.rb
Constant Summary collapse
- CREST_BASE_URL =
'https://crest-tq.eveonline.com/'
Instance Method Summary collapse
Instance Method Details
#get_markets(region_id, type_id) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/models/caddie/crest_data_retriever.rb', line 8 def get_markets( region_id, type_id ) debug = ENV[ 'EBS_DEBUG_MODE' ] && ENV[ 'EBS_DEBUG_MODE' ].downcase == 'true' 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 ) [ items, connections_count ] end |