Class: Ably::Models::HttpPaginatedResponse::ErrorResponse Private

Inherits:
Object
  • Object
show all
Defined in:
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

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/ably/models/http_paginated_response.rb', line 90

def initialize(status, error_code, error_message)
  @status = status
  @error_code = error_code
  @error_message = error_message
end

Instance Method Details

#bodyObject

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/ably/models/http_paginated_response.rb', line 107

def body
  nil
end

#headersObject

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/ably/models/http_paginated_response.rb', line 100

def headers
  {
    'X-Ably-Errorcode' => @error_code,
    'X-Ably-Errormessage' => @error_message
  }
end

#statusObject

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/ably/models/http_paginated_response.rb', line 96

def status
  @status
end