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.



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

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

Instance Method Details

#content_typeObject



71
72
73
# File 'app/jobs/pageflow/chart/scrape_site_job.rb', line 71

def content_type
  @options.fetch(:content_type)
end

#original_filenameObject



75
76
77
# File 'app/jobs/pageflow/chart/scrape_site_job.rb', line 75

def original_filename
  @options.fetch(:file_name)
end