Class: BaUpload::StatisticFile
- Defined in:
- lib/ba_upload/statistic_file.rb
Instance Method Summary collapse
Methods inherited from ErrorFile
Constructor Details
This class inherits a constructor from BaUpload::ErrorFile
Instance Method Details
#read ⇒ Object
13 14 15 |
# File 'lib/ba_upload/statistic_file.rb', line 13 def read @mechanize_link.click.body end |
#tempfile ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/ba_upload/statistic_file.rb', line 4 def tempfile tf = Tempfile.new(['statistic_file', '.xlsx']) tf.binmode tf.write(read) tf.flush tf.rewind tf end |