Class: Phoenx::ProjectValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/phoenx/validators/project_validator.rb

Constant Summary collapse

ERROR_NONE =
0
ERROR_INVALID_NAME =
1

Instance Method Summary collapse

Instance Method Details

#validate(project) ⇒ Object



7
8
9
10
11
12
# File 'lib/phoenx/validators/project_validator.rb', line 7

def validate(project)
	if project.name == nil || project.name == ""
		return ERROR_INVALID_NAME
	end
	return ERROR_NONE
end