Sha256: 6376aabdda91f264988ae59d56d998671500e2c027129f366806a07bd14c327e

Contents?: true

Size: 303 Bytes

Versions: 1

Compression:

Stored size: 303 Bytes

Contents

require 'ba_upload/error_file'
module BaUpload
  class StatisticFile < ErrorFile
    def tempfile
      tf = Tempfile.new(['statistic_file', '.xlsx'])
      tf.binmode
      tf.write(read)
      tf.flush
      tf.rewind
      tf
    end

    def read
      @mechanize_link.click.body
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ba_upload-0.5.0 lib/ba_upload/statistic_file.rb