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.
90 91 92 93 94 |
# File 'lib/submodules/ably-ruby/lib/ably/models/http_paginated_response.rb', line 90 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.
107 108 109 |
# File 'lib/submodules/ably-ruby/lib/ably/models/http_paginated_response.rb', line 107 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.
100 101 102 103 104 105 |
# File 'lib/submodules/ably-ruby/lib/ably/models/http_paginated_response.rb', line 100 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.
96 97 98 |
# File 'lib/submodules/ably-ruby/lib/ably/models/http_paginated_response.rb', line 96 def status @status end |