Sha256: 14e7279b9cd579759cecc68f27c75978aa781a0a0f280a99648ce7e6319ee51f

Contents?: true

Size: 249 Bytes

Versions: 27

Compression:

Stored size: 249 Bytes

Contents

module Shipit
  module CSVSerializer
    extend self

    def load(payload)
      return [] if payload.blank?
      payload.split(',')
    end

    def dump(array)
      return nil if array.blank?
      Array.wrap(array).join(',')
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
shipit-engine-0.17.0 lib/shipit/csv_serializer.rb
shipit-engine-0.16.0 lib/shipit/csv_serializer.rb
shipit-engine-0.15.0 lib/shipit/csv_serializer.rb
shipit-engine-0.14.0 lib/shipit/csv_serializer.rb
shipit-engine-0.13.0 lib/shipit/csv_serializer.rb
shipit-engine-0.12.1 lib/shipit/csv_serializer.rb
shipit-engine-0.12.0 lib/shipit/csv_serializer.rb