Class: Dragnet::Validators::Fields::PathValidator

Inherits:
FieldValidator show all
Defined in:
lib/dragnet/validators/fields/path_validator.rb

Overview

Validates the path attribute of a Repo object.

Instance Method Summary collapse

Instance Method Details

#validate(key, value) ⇒ Object

Validates the Path of the repository.

Parameters:

  • key (String)

    The name of the key

  • value (Object)

    The value of the key

Raises:



15
16
17
18
# File 'lib/dragnet/validators/fields/path_validator.rb', line 15

def validate(key, value)
  validate_presence(key, value)
  validate_type(key, value, String)
end