Class: Txdb::Handlers::Triggers::PullHandler

Inherits:
Handler
  • Object
show all
Defined in:
lib/txdb/handlers/triggers/pull_handler.rb

Instance Attribute Summary

Attributes inherited from Handler

#request

Instance Method Summary collapse

Methods inherited from Handler

handle_request, #initialize

Constructor Details

This class inherits a constructor from Txdb::Handlers::Triggers::Handler

Instance Method Details

#handleObject



6
7
8
9
10
11
12
13
14
# File 'lib/txdb/handlers/triggers/pull_handler.rb', line 6

def handle
  handle_safely do
    locales.each do |locale|
      downloader.download_table(table, locale)
    end

    respond_with(200, {})
  end
end