Sha256: ce9866c700da894759aa6c65846df8ffe13622d15ce8d118ccea90723518884b

Contents?: true

Size: 319 Bytes

Versions: 1

Compression:

Stored size: 319 Bytes

Contents

module CsvRowModel
  module Model
    class CsvStringModel
      include ActiveWarnings

      def initialize(source)
        @source = source.symbolize_keys
      end

      def method_missing(name, *args, &block)
        return super unless @source.keys.include? name
        @source[name]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
csv_row_model-0.1.0 lib/csv_row_model/model/csv_string_model.rb