Method: JustizSync::Transfer#sync_state

Defined in:
lib/justiz_sync/cli.rb

#sync_state(state) ⇒ Object



45
46
47
48
49
# File 'lib/justiz_sync/cli.rb', line 45

def sync_state(state)
  courts = scraper.contacts_for(state)
  puts "Syncing #{state} #{courts.length} courts"
  sync_courts(courts)
end