class EasyPost::Errors::InvalidParameterError
Public Class Methods
Source
# File lib/easypost/errors/invalid_parameter_error.rb, line 8 def initialize(parameter, suggestion = nil) super EasyPost::Constants::INVALID_PARAMETER % parameter + (suggestion.nil? ? '' : " #{suggestion}") end
@param [String] parameter The name of the parameter that was invalid. @param [String] suggestion Optional suggestion message for a valid parameter.
Calls superclass method