Sha256: 0ea5de38424a9f966a1c2a4721c5b82a17a37dc9acb2969e127d776a18af4cbd

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

module DataSampler
  class Dependency

    attr_reader :table_name
    attr_reader :keys

    def initialize(table_name, keys)
      @table_name = table_name
      @keys = keys
    end

    def eql? other
      table_name == other.table_name and keys == other.keys
    end

    def to_s
      "#{keys} in table #{table_name}"
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
data_sampler-0.0.3 lib/data_sampler/dependency.rb
data_sampler-0.0.2 lib/data_sampler/dependency.rb
data_sampler-0.0.1 lib/data_sampler/dependency.rb