Class: Pageflow::Chart::StringIOWithContentType

Inherits:
StringIO
  • Object
show all
Defined in:
app/jobs/pageflow/chart/scrape_site_job.rb

Instance Method Summary collapse

Constructor Details

#initialize(string, options) ⇒ StringIOWithContentType

Returns a new instance of StringIOWithContentType.



58
59
60
61
# File 'app/jobs/pageflow/chart/scrape_site_job.rb', line 58

def initialize(string, options)
  super(string)
  @options = options
end

Instance Method Details

#content_typeObject



63
64
65
# File 'app/jobs/pageflow/chart/scrape_site_job.rb', line 63

def content_type
  @options.fetch(:content_type)
end

#original_filenameObject



67
68
69
# File 'app/jobs/pageflow/chart/scrape_site_job.rb', line 67

def original_filename
  @options.fetch(:file_name)
end