class Ecko::Plugins::Sponsor::SchemaValidator::GatewayValidator
Public Instance Methods
validate()
click to toggle source
Validate all the gateway schema which helps in providing correct structure for the gateways that is used for donation
# File lib/ecko/plugins/sponsor/schema_validator.rb, line 29 def validate # Validate name raise InvalidGatewayName if schema[:name].nil? # validate checkout raise InvalidGatewayCheckout if schema[:checkout].nil? || !schema[:checkout].is_a?(Class) end