Class: DiningTable::Presenters::CSVPresenter

Inherits:
SpreadsheetPresenter show all
Defined in:
lib/dining-table/presenters/csv_presenter.rb

Instance Attribute Summary collapse

Attributes inherited from Presenter

#options, #table, #view_context

Instance Method Summary collapse

Methods inherited from SpreadsheetPresenter

#render_footer, #render_header, #render_row

Methods inherited from Presenter

#connect_to, #type?

Constructor Details

#initialize(*args) ⇒ CSVPresenter

Returns a new instance of CSVPresenter.



9
10
11
12
# File 'lib/dining-table/presenters/csv_presenter.rb', line 9

def initialize( *args )
  super
  self.output = ''
end

Instance Attribute Details

#outputObject



18
19
20
# File 'lib/dining-table/presenters/csv_presenter.rb', line 18

def output
  stringio.string
end

Instance Method Details

#identifierObject



14
15
16
# File 'lib/dining-table/presenters/csv_presenter.rb', line 14

def identifier
  :csv
end