Method: Justiz::Scraper::Courts#contacts_for
- Defined in:
- lib/justiz/scraper/courts.rb
#contacts_for(state) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/justiz/scraper/courts.rb', line 19 def contacts_for(state) page = load_page('ALL', state) return page.contacts unless page.limit_warning? # do each type separately hoping to avoid limit warning court_types.keys.map do |court_type| contacts_of_type(court_type, state) end.flatten.compact.uniq end |