Class: Card::Format::CsvFormat

Inherits:
Card::Format show all
Defined in:
lib/card/format/csv_format.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.view_caching?Boolean

Returns:

  • (Boolean)


16
17
18
19
20
# File 'lib/card/format/csv_format.rb', line 16

def self.view_caching?
  # TODO: make view caching handle non-strings
  # (specifically stub_render)
  false
end

Instance Method Details

#mime_typeObject



8
9
10
11
12
13
14
# File 'lib/card/format/csv_format.rb', line 8

def mime_type
  if params[:disposition] == "inline"
    "text/plain"
  else
    "text/comma-separated-values"
  end
end