Exception: Netflix::Error::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Netflix::Error::ResponseError
- Defined in:
- lib/netflix/errors.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(body, headers) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(body, headers) ⇒ ResponseError
Returns a new instance of ResponseError.
6 7 8 9 10 11 12 |
# File 'lib/netflix/errors.rb', line 6 def initialize(body, headers) @body = body @headers = headers body_obj = JSON.parse(body) = body_obj["status"]["message"] super() end |