Class: Ms::Mascot::Export

Inherits:
Tap::Mechanize::Submit
  • Object
show all
Includes:
Validation
Defined in:
lib/ms/mascot/export.rb

Overview

:startdoc::task exports results from a search

Constant Summary

Constants included from Validation

Validation::MASCOT_SWITCH

Instance Method Summary collapse

Instance Method Details

#process(result_filepath) ⇒ Object



55
56
57
58
59
60
61
62
63
64
65
# File 'lib/ms/mascot/export.rb', line 55

def process(result_filepath)
  params = config[:params].to_hash
  params['file'] = result_filepath

  # submit request
  super(
    :request_method => 'GET',
    :uri => uri,
    :params => params
  )
end