Method: Apidae::Selection#api_agenda
- Defined in:
- app/models/apidae/selection.rb
#api_agenda(from, to) ⇒ Object
82 83 84 85 86 87 88 89 90 91 |
# File 'app/models/apidae/selection.rb', line 82 def api_agenda(from, to) key = cache_key(:agenda, from, to) res = $apidae_cache.read(key) unless res query_args = build_args(AGENDA_ENDPOINT, {selection_ids: [apidae_id], from: from, to: to, count: 200}) res = query_api(query_args, true) $apidae_cache.write(key, res) end res end |