Class: Thrifter::Validation
- Inherits:
-
Object
- Object
- Thrifter::Validation
- Defined in:
- lib/thrifter/middleware/validation.rb
Instance Method Summary collapse
Instance Method Details
#call(rpc) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/thrifter/middleware/validation.rb', line 9 def call(rpc) validate rpc, rpc.args response = app.call rpc validate rpc, Array(response) response end |