class MockChargebee::Validations::Webhooks::EventAttributes
Constants
- ALLOWED_KEYS
Public Class Methods
validate_allowed(attributes)
click to toggle source
# File lib/mock_chargebee/validations/webhooks.rb, line 7 def self.validate_allowed(attributes) attributes.keys.each do |key| raise InvalidEventAttribute.new(key) unless ALLOWED_KEYS.include?(key) end end