Class: ThreeScale::Backend::Validators::Limits
- Defined in:
- lib/3scale/backend/validators/limits.rb
Instance Attribute Summary
Attributes inherited from Base
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
#apply ⇒ Object
6 7 8 |
# File 'lib/3scale/backend/validators/limits.rb', line 6 def apply valid_limits? ? succeed! : fail!(LimitsExceeded.new) end |