Exception: RequiredParameterError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, parameter) ⇒ RequiredParameterError

Returns a new instance of RequiredParameterError.



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

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.



4
5
6
# File 'lib/pandadoc/api/document.rb', line 4

def parameter
  @parameter
end