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.
12 13 14 15 |
# File 'lib/panda_doc/failure_result.rb', line 12 def initialize(response) @response = response @error = Responses::Error.new(Objects::Error.new).from_hash(response.body) end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
7 8 9 |
# File 'lib/panda_doc/failure_result.rb', line 7 def error @error end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/panda_doc/failure_result.rb', line 17 def to_s "#{status} #{type}: #{detail}" end |