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.



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

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

Instance Attribute Details

#outputObject



22
23
24
# File 'lib/dining-table/presenters/csv_presenter.rb', line 22

def output
  stringio.string
end

Instance Method Details

#identifierObject



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

def identifier
  :csv
end