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.31.0 lib/shipit/csv_serializer.rb
shipit-engine-0.30.0 lib/shipit/csv_serializer.rb
shipit-engine-0.29.0 lib/shipit/csv_serializer.rb
shipit-engine-0.28.1 lib/shipit/csv_serializer.rb
shipit-engine-0.28.0 lib/shipit/csv_serializer.rb
shipit-engine-0.27.1 lib/shipit/csv_serializer.rb
shipit-engine-0.27.0 lib/shipit/csv_serializer.rb
shipit-engine-0.26.0 lib/shipit/csv_serializer.rb
shipit-engine-0.25.1 lib/shipit/csv_serializer.rb
shipit-engine-0.25.0 lib/shipit/csv_serializer.rb
shipit-engine-0.24.0 lib/shipit/csv_serializer.rb
shipit-engine-0.23.1 lib/shipit/csv_serializer.rb
shipit-engine-0.23.0 lib/shipit/csv_serializer.rb
shipit-engine-0.22.0 lib/shipit/csv_serializer.rb
shipit-engine-0.21.0 lib/shipit/csv_serializer.rb
shipit-engine-0.20.1 lib/shipit/csv_serializer.rb
shipit-engine-0.20.0 lib/shipit/csv_serializer.rb
shipit-engine-0.19.0 lib/shipit/csv_serializer.rb
shipit-engine-0.18.1 lib/shipit/csv_serializer.rb
shipit-engine-0.18.0 lib/shipit/csv_serializer.rb