Sha256: 980f0c61d91b423129fec00f3258515975fbfd69b7bffecc252d538e55eadf82

Contents?: true

Size: 237 Bytes

Versions: 1

Compression:

Stored size: 237 Bytes

Contents

module RedisDatapump
  class Validator
    def initialize opts
      @options = opts
    end

    def validate!
      if @options[:redis_database].nil?
        raise ArgumentError, 'Please specify a database'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redis-datapump-0.1.0.alpha1 lib/redis-datapump/validator.rb