Sha256: ffed4a4b1751bc06584b607a8ef7cc0d959fbca9ddf69c8e7f9db4ab7cf4bce6

Contents?: true

Size: 370 Bytes

Versions: 16

Compression:

Stored size: 370 Bytes

Contents

module Eeml
  class CsvParser

    #update the datastreams for the given environment, using the content in the given csv string.
    def update_datastreams_from_csv(csv_content, environment)
      # split values at commas
      datastream_values = csv_content.split(/,/)

      # now strip any whitespace
      datastream_values.map! { |d| d.strip }

    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
eeml-0.0.21 lib/eeml/csv_parser.rb
eeml-0.0.18 lib/eeml/csv_parser.rb
eeml-0.0.17 lib/eeml/csv_parser.rb
eeml-0.0.14 lib/eeml/csv_parser.rb
eeml-0.0.13 lib/eeml/csv_parser.rb
eeml-0.0.12 lib/eeml/csv_parser.rb
eeml-0.0.11 lib/eeml/csv_parser.rb
eeml-0.0.10 lib/eeml/csv_parser.rb
eeml-0.0.9 lib/eeml/csv_parser.rb
eeml-0.0.8 lib/eeml/csv_parser.rb
eeml-0.0.7 lib/eeml/csv_parser.rb
eeml-0.0.6 lib/eeml/csv_parser.rb
eeml-0.0.3 lib/eeml/csv_parser.rb
eeml-0.0.4 lib/eeml/csv_parser.rb
eeml-0.0.5 lib/eeml/csv_parser.rb
eeml-0.0.2 lib/eeml/csv_parser.rb