Class: MockChargebee::Validations::Webhooks::EventAttributes
- Inherits:
-
Object
- Object
- MockChargebee::Validations::Webhooks::EventAttributes
- Defined in:
- lib/mock_chargebee/validations/webhooks.rb
Constant Summary collapse
- ALLOWED_KEYS =
%w[id occurred_at source user api_version webhooks]
Class Method Summary collapse
Class Method Details
.validate_allowed(attributes) ⇒ Object
7 8 9 10 11 |
# 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 |