Exception: ParameterTypeError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, received, requested) ⇒ ParameterTypeError

Returns a new instance of ParameterTypeError.



19
20
21
22
23
24
25
26
# File 'lib/pandadoc/api/document.rb', line 19

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

  # Store the action in an instance variable
  @received = received
  @requested = requested
end

Instance Attribute Details

#receivedObject (readonly)

Returns the value of attribute received.



16
17
18
# File 'lib/pandadoc/api/document.rb', line 16

def received
  @received
end

#requestedObject (readonly)

Returns the value of attribute requested.



17
18
19
# File 'lib/pandadoc/api/document.rb', line 17

def requested
  @requested
end