Exception: PandaDoc::FailureResult
- Inherits:
-
StandardError
- Object
- StandardError
- PandaDoc::FailureResult
- Extended by:
- Forwardable
- Defined in:
- lib/panda_doc/failure_result.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(response) ⇒ FailureResult
constructor
A new instance of FailureResult.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ FailureResult
Returns a new instance of FailureResult.
14 15 16 17 |
# File 'lib/panda_doc/failure_result.rb', line 14 def initialize(response) @response = response @error = Objects::Error.new(response.body) end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
9 10 11 |
# File 'lib/panda_doc/failure_result.rb', line 9 def error @error end |
Instance Method Details
#to_s ⇒ Object
19 20 21 |
# File 'lib/panda_doc/failure_result.rb', line 19 def to_s "#{status} #{type}: #{detail}" end |