Exception: Miniswag::MissingParameterError
- Inherits:
-
StandardError
- Object
- StandardError
- Miniswag::MissingParameterError
- Defined in:
- lib/miniswag/request_factory.rb
Instance Attribute Summary collapse
-
#body_param ⇒ Object
readonly
Returns the value of attribute body_param.
Instance Method Summary collapse
-
#initialize(body_param) ⇒ MissingParameterError
constructor
A new instance of MissingParameterError.
- #message ⇒ Object
Constructor Details
#initialize(body_param) ⇒ MissingParameterError
Returns a new instance of MissingParameterError.
206 207 208 |
# File 'lib/miniswag/request_factory.rb', line 206 def initialize(body_param) @body_param = body_param end |
Instance Attribute Details
#body_param ⇒ Object (readonly)
Returns the value of attribute body_param.
204 205 206 |
# File 'lib/miniswag/request_factory.rb', line 204 def body_param @body_param end |
Instance Method Details
#message ⇒ Object
210 211 212 213 214 215 |
# File 'lib/miniswag/request_factory.rb', line 210 def <<~MSG Missing parameter '#{body_param}' Please check your test. Ensure you provide the parameter in a `params` block. MSG end |