Exception: Apipie::ParamMultipleMissing

Inherits:
ParamError show all
Defined in:
lib/apipie/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#paramsObject

Returns the value of attribute params.



28
29
30
# File 'lib/apipie/errors.rb', line 28

def params
  @params
end

Instance Method Details

#to_sObject



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