Sha256: 7ba8f72464bd3087626b7047fe08c27761ee6143bf8c85bc5c71fdfa89aba518

Contents?: true

Size: 297 Bytes

Versions: 18

Compression:

Stored size: 297 Bytes

Contents

require_relative 'abstract'

require 'csv'

module Csv2hash
  module Adapter
    class CsvAdapter < Abstract

      attr_accessor :file_path

      def initialize file_path
        self.file_path = file_path
      end

      def source
        CSV.read self.file_path
      end

    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
csv2hash-0.7.6 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.7.5 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.7.3 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.7.2 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.7.1 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.7.0 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.6.8 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.6.7 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.6.6 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.6.5 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.6.4 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.6.3 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.6.2 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.6.1 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.6.0 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.5.0 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.4.0 lib/csv2hash/adapters/csv_adapter.rb
csv2hash-0.3.0 lib/csv2hash/adapters/csv_adapter.rb