Class: Ably::Models::HttpPaginatedResponse::ErrorResponse Private
- Inherits:
-
Object
- Object
- Ably::Models::HttpPaginatedResponse::ErrorResponse
- Defined in:
- lib/submodules/ably-ruby/lib/ably/models/http_paginated_response.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Farady compatible response object used when an exception is raised
Instance Method Summary collapse
- #body ⇒ Object private
- #headers ⇒ Object private
-
#initialize(status, error_code, error_message) ⇒ ErrorResponse
constructor
private
A new instance of ErrorResponse.
- #status ⇒ Object private
Constructor Details
#initialize(status, error_code, error_message) ⇒ ErrorResponse
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ErrorResponse.
68 69 70 71 72 |
# File 'lib/submodules/ably-ruby/lib/ably/models/http_paginated_response.rb', line 68 def initialize(status, error_code, ) @status = status @error_code = error_code @error_message = end |
Instance Method Details
#body ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
85 86 87 |
# File 'lib/submodules/ably-ruby/lib/ably/models/http_paginated_response.rb', line 85 def body nil end |
#headers ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
78 79 80 81 82 83 |
# File 'lib/submodules/ably-ruby/lib/ably/models/http_paginated_response.rb', line 78 def headers { 'X-Ably-Errorcode' => @error_code, 'X-Ably-Errormessage' => @error_message } end |
#status ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
74 75 76 |
# File 'lib/submodules/ably-ruby/lib/ably/models/http_paginated_response.rb', line 74 def status @status end |