Module: Freno::Client::Preconditions
- Included in:
- Request
- Defined in:
- lib/freno/client/preconditions.rb
Defined Under Namespace
Classes: Checker
Constant Summary collapse
- PreconditionNotMet =
Class.new(ArgumentError)
Class Method Summary collapse
Class Method Details
.check(&block) ⇒ Object
30 31 32 33 34 |
# File 'lib/freno/client/preconditions.rb', line 30 def check(&block) checker = Checker.new checker.instance_eval(&block) checker.report end |