Class: Card::Format::CsvFormat
- Inherits:
-
Card::Format
- Object
- Card::Format
- Card::Format::CsvFormat
- Defined in:
- lib/card/format/csv_format.rb
Overview
card format class for csv (comma separated values) views
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.view_caching? ⇒ Boolean
17 18 19 20 21 |
# File 'lib/card/format/csv_format.rb', line 17 def self.view_caching? # TODO: make view caching handle non-strings # (specifically stub_render) false end |
Instance Method Details
#mime_type ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/card/format/csv_format.rb', line 9 def mime_type if params[:disposition] == "inline" "text/plain" else "text/comma-separated-values" end end |