Method: Grape::Namespace#requirements
- Defined in:
- lib/grape/namespace.rb
#requirements ⇒ Hash
Retrieves the requirements from the options hash, if given.
20 21 22 |
# File 'lib/grape/namespace.rb', line 20 def requirements [:requirements] || {} end |