Method: Flydata::QueryBasedSync::ResourceRequester#start

Defined in:
lib/flydata/query_based_sync/resource_requester.rb

#startObject

Start fetching resources by keeping a same connection Caller needs to call methods using the connection with block

ex:

requester.start do |req|
  req.fetch_resources(table_name) do |response|
    handle(response)
  end
end


25
26
27
28
29
30
# File 'lib/flydata/query_based_sync/resource_requester.rb', line 25

def start
  context.table_meta.reload(@resource_client)
  yield self
ensure
  @resource_client.close
end