Class: ThreeScale::Backend::Validators::Limits

Inherits:
Base
  • Object
show all
Defined in:
lib/3scale/backend/validators/limits.rb

Instance Attribute Summary

Attributes inherited from Base

#params, #status

Instance Method Summary collapse

Methods inherited from Base

#application, apply, #fail!, #initialize, #service, #succeed!

Constructor Details

This class inherits a constructor from ThreeScale::Backend::Validators::Base

Instance Method Details

#applyObject



6
7
8
# File 'lib/3scale/backend/validators/limits.rb', line 6

def apply
  valid_limits? ? succeed! : fail!(LimitsExceeded.new)
end