Class: GnListResolver::ResolverJob
- Inherits:
-
Object
- Object
- GnListResolver::ResolverJob
- 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
-
#initialize(names, batch_data, data_source_id) ⇒ ResolverJob
constructor
A new instance of ResolverJob.
- #run ⇒ Object
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
#run ⇒ Object
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 |