Class: Graphiti::RequestValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/graphiti/request_validator.rb

Defined Under Namespace

Classes: ValidatorFactory

Instance Method Summary collapse

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