Exception: Pandadoc::Api::ParamsValidator::RequiredParameterError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pandadoc/api/params_validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, parameter) ⇒ RequiredParameterError

Returns a new instance of RequiredParameterError.



7
8
9
10
11
12
13
# File 'lib/pandadoc/api/params_validator.rb', line 7

def initialize(message, parameter)
  # Call the parent's constructor to set the message
  super(message)

  # Store the action in an instance variable
  @parameter = parameter
end

Instance Attribute Details

#parameterObject (readonly)

Returns the value of attribute parameter.



5
6
7
# File 'lib/pandadoc/api/params_validator.rb', line 5

def parameter
  @parameter
end