Class: GnListResolver::ResolverJob

Inherits:
Object
  • Object
show all
Defined in:
lib/gn_list_resolver/resolver_job.rb

Overview

Remote resolution for parallel jobs

Constant Summary collapse

GRAPHQL =
GnGraphQL.new
QUERY =
GRAPHQL.client.parse(GRAPHQL.query)

Instance Method Summary collapse

Constructor Details

#initialize(names, batch_data, data_source_id) ⇒ ResolverJob

Returns a new instance of ResolverJob.



8
9
10
11
12
13
# File 'lib/gn_list_resolver/resolver_job.rb', line 8

def initialize(names, batch_data, data_source_id)
  @names = names
  @batch_data = batch_data
  @data_source_id = data_source_id
  @stats = Stats.new
end

Instance Method Details

#runObject



15
16
17
18
# File 'lib/gn_list_resolver/resolver_job.rb', line 15

def run
  res = remote_resolve(@names)
  [res, @batch_data, @stats]
end