Exception: Callapi::MissingParamError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/callapi/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(request_path, param_keys_to_replace, missing_keys) ⇒ MissingParamError

Returns a new instance of MissingParamError.



52
53
54
55
56
57
# File 'lib/callapi/errors.rb', line 52

def initialize(request_path, param_keys_to_replace, missing_keys)
  param_keys_to_replace.each do |param_key|
    request_path.sub!(param_key + '_param', ':' + param_key)
  end
  super "could not found: #{missing_keys.join(', ')} for \"#{request_path}\""
end