Exception: OneSignal::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- OneSignal::RequestError
- Defined in:
- lib/onesignal/request_error.rb
Instance Attribute Summary collapse
-
#http_body ⇒ Object
readonly
Returns the value of attribute http_body.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
Instance Method Summary collapse
-
#initialize(message, http_status, http_body) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(message, http_status, http_body) ⇒ RequestError
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/onesignal/request_error.rb', line 6 def initialize(, http_status, http_body) @http_status = http_status @http_body = http_body if @http_status += " - http status : #{@http_status}" end if @http_body += " - http body : #{@http_body}" end super() end |
Instance Attribute Details
#http_body ⇒ Object (readonly)
Returns the value of attribute http_body.
4 5 6 |
# File 'lib/onesignal/request_error.rb', line 4 def http_body @http_body end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
3 4 5 |
# File 'lib/onesignal/request_error.rb', line 3 def http_status @http_status end |