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

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

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, 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.



85
86
87
# File 'lib/submodules/ably-ruby/lib/ably/models/http_paginated_response.rb', line 85

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.



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

#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.



74
75
76
# File 'lib/submodules/ably-ruby/lib/ably/models/http_paginated_response.rb', line 74

def status
  @status
end