Class: Graphiti::RequestValidator
- Defined in:
- lib/graphiti/request_validator.rb
Defined Under Namespace
Classes: ValidatorFactory
Instance Method Summary collapse
-
#initialize(root_resource, raw_params, action) ⇒ RequestValidator
constructor
A new instance of RequestValidator.
Constructor Details
#initialize(root_resource, raw_params, action) ⇒ RequestValidator
Returns a new instance of RequestValidator.
9 10 11 |
# File 'lib/graphiti/request_validator.rb', line 9 def initialize(root_resource, raw_params, action) @validator = ValidatorFactory.create(root_resource, raw_params, action) end |