Exception: Grape::Exceptions::MissingOption
- Defined in:
- lib/grape/exceptions/missing_option.rb
Constant Summary
Constants inherited from Base
Base::BASE_ATTRIBUTES_KEY, Base::BASE_MESSAGES_KEY, Base::FALLBACK_LOCALE
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(option) ⇒ MissingOption
constructor
A new instance of MissingOption.
Methods inherited from Base
Constructor Details
#initialize(option) ⇒ MissingOption
Returns a new instance of MissingOption.
5 6 7 |
# File 'lib/grape/exceptions/missing_option.rb', line 5 def initialize(option) super(message: ("missing_option", option: option)) end |