Module: Potter::CSV

Extended by:
ActiveSupport::Concern
Included in:
Model
Defined in:
lib/potter/csv.rb

Defined Under Namespace

Classes: Row, Table

Instance Method Summary collapse

Instance Method Details

#to_csvObject



13
14
15
# File 'lib/potter/csv.rb', line 13

def to_csv
  Row.new(attributes.keys, attributes.values.map(&:presence))
end