Exception: Pusher::ErrorResponse
- Defined in:
- lib/pusher-platform/error_response.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, headers, description) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
- #to_s ⇒ Object
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
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/pusher-platform/error_response.rb', line 3 def description @description end |
#headers ⇒ Object
Returns the value of attribute headers.
3 4 5 |
# File 'lib/pusher-platform/error_response.rb', line 3 def headers @headers end |
#status ⇒ Object
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_s ⇒ Object
11 12 13 |
# File 'lib/pusher-platform/error_response.rb', line 11 def to_s "Pusher::ErrorResponse: #{status} #{description}" end |