Class: Pageflow::Chart::StringIOWithContentType
- Inherits:
-
StringIO
- Object
- StringIO
- Pageflow::Chart::StringIOWithContentType
- Defined in:
- app/jobs/pageflow/chart/scrape_site_job.rb
Instance Method Summary collapse
- #content_type ⇒ Object
-
#initialize(string, options) ⇒ StringIOWithContentType
constructor
A new instance of StringIOWithContentType.
- #original_filename ⇒ Object
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, ) super(string) @options = end |
Instance Method Details
#content_type ⇒ Object
71 72 73 |
# File 'app/jobs/pageflow/chart/scrape_site_job.rb', line 71 def content_type @options.fetch(:content_type) end |
#original_filename ⇒ Object
75 76 77 |
# File 'app/jobs/pageflow/chart/scrape_site_job.rb', line 75 def original_filename @options.fetch(:file_name) end |