Exception: Pusher::ErrorResponse

Inherits:
Error
  • Object
show all
Defined in:
lib/pusher-platform/error_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, headers, description) ⇒ ErrorResponse

Returns a new instance of ErrorResponse.



5
6
7
8
9
# File 'lib/pusher-platform/error_response.rb', line 5

def initialize(status, headers, description)
  @status = status
  @headers = headers
  @description = description
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/pusher-platform/error_response.rb', line 3

def description
  @description
end

#headersObject

Returns the value of attribute headers.



3
4
5
# File 'lib/pusher-platform/error_response.rb', line 3

def headers
  @headers
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/pusher-platform/error_response.rb', line 3

def status
  @status
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/pusher-platform/error_response.rb', line 11

def to_s
  "Pusher::ErrorResponse: #{status} #{description}"
end