Exception: FileTurn::UnprocessableEntityException
- Inherits:
-
FileTurnException
- Object
- Exception
- FileTurnException
- FileTurn::UnprocessableEntityException
- Defined in:
- lib/fileturn/exceptions.rb
Instance Attribute Summary collapse
-
#parsed_response ⇒ Object
readonly
Returns the value of attribute parsed_response.
Attributes inherited from FileTurnException
Instance Method Summary collapse
-
#initialize(resp) ⇒ UnprocessableEntityException
constructor
A new instance of UnprocessableEntityException.
- #to_s ⇒ Object
Constructor Details
#initialize(resp) ⇒ UnprocessableEntityException
Returns a new instance of UnprocessableEntityException.
20 21 22 23 |
# File 'lib/fileturn/exceptions.rb', line 20 def initialize(resp) super(resp) @parsed_response = OpenStruct.new(JSON.parse(resp.body)) end |
Instance Attribute Details
#parsed_response ⇒ Object (readonly)
Returns the value of attribute parsed_response.
18 19 20 |
# File 'lib/fileturn/exceptions.rb', line 18 def parsed_response @parsed_response end |
Instance Method Details
#to_s ⇒ Object
25 26 27 |
# File 'lib/fileturn/exceptions.rb', line 25 def to_s @parsed_response.to_s end |