Class: Graphiti::RequestValidators::UpdateValidator

Inherits:
Validator show all
Defined in:
lib/graphiti/request_validators/update_validator.rb

Instance Attribute Summary

Attributes inherited from Validator

#errors

Instance Method Summary collapse

Methods inherited from Validator

#deserialized_payload, #initialize, #validate!

Constructor Details

This class inherits a constructor from Graphiti::RequestValidators::Validator

Instance Method Details

#validateObject



4
5
6
7
8
9
10
# File 'lib/graphiti/request_validators/update_validator.rb', line 4

def validate
  if required_payload? && payload_matches_endpoint?
    super
  else
    false
  end
end