Class: GnCrossmap::ResolverJob
- Inherits:
-
Object
- Object
- GnCrossmap::ResolverJob
- Defined in:
- lib/gn_crossmap/resolver_job.rb
Overview
Remote resolution for parallel jobs
Instance Method Summary collapse
-
#initialize(names, batch_data, resolver_url, ds_id) ⇒ ResolverJob
constructor
A new instance of ResolverJob.
- #run ⇒ Object
Constructor Details
#initialize(names, batch_data, resolver_url, ds_id) ⇒ ResolverJob
Returns a new instance of ResolverJob.
6 7 8 9 10 11 12 13 |
# File 'lib/gn_crossmap/resolver_job.rb', line 6 def initialize(names, batch_data, resolver_url, ds_id) @names_size = names.size @names = names.join("\n") @batch_data = batch_data @resolver_url = resolver_url @ds_id = ds_id @stats = Stats.new end |
Instance Method Details
#run ⇒ Object
15 16 17 18 |
# File 'lib/gn_crossmap/resolver_job.rb', line 15 def run res = remote_resolve(@names) [res, @batch_data, @stats] end |