class EasyPost::Errors::InvalidParameterError

Public Class Methods

new(parameter, suggestion = nil) click to toggle source

@param [String] parameter The name of the parameter that was invalid. @param [String] suggestion Optional suggestion message for a valid parameter.

Calls superclass method
# 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