Exception: Apipie::ParamMultipleMissing
- Inherits:
-
ParamError
- Object
- StandardError
- Error
- ParamError
- Apipie::ParamMultipleMissing
- Defined in:
- lib/apipie/errors.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(params) ⇒ ParamMultipleMissing
constructor
A new instance of ParamMultipleMissing.
- #to_s ⇒ Object
Constructor Details
#initialize(params) ⇒ ParamMultipleMissing
Returns a new instance of ParamMultipleMissing.
30 31 32 |
# File 'lib/apipie/errors.rb', line 30 def initialize(params) @params = params end |
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params.
28 29 30 |
# File 'lib/apipie/errors.rb', line 28 def params @params end |
Instance Method Details
#to_s ⇒ Object
34 35 36 37 38 |
# File 'lib/apipie/errors.rb', line 34 def to_s params.map do |param| ParamMissing.new(param).to_s end.join("\n") end |