Sha256: 5c131b5001b24a8a8dceed83aa3ee47a9665c0413808a5402361f36bd27b735d
Contents?: true
Size: 321 Bytes
Versions: 1
Compression:
Stored size: 321 Bytes
Contents
module ErrandBoy module Validator def self.build(request) class_name = request.provider.capitalize class_name += request.action.capitalize const_get(class_name).new(request) rescue NameError raise InvalidError, "#{request.provider} #{request.action} does not defined." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
errand-boy-0.1.0 | lib/errand_boy/validator.rb |