Class: WebHookService::InternalErrorResponse
- Inherits:
-
Object
- Object
- WebHookService::InternalErrorResponse
- Defined in:
- app/services/web_hook_service.rb
Constant Summary collapse
- ERROR_MESSAGE =
'internal error'
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize ⇒ InternalErrorResponse
constructor
A new instance of InternalErrorResponse.
- #internal_server_error? ⇒ Boolean
- #redirection? ⇒ Boolean
- #success? ⇒ Boolean
Constructor Details
#initialize ⇒ InternalErrorResponse
Returns a new instance of InternalErrorResponse.
23 24 25 26 27 |
# File 'app/services/web_hook_service.rb', line 23 def initialize @headers = Gitlab::HTTP::Response::Headers.new({}) @body = '' @code = ERROR_MESSAGE end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
9 10 11 |
# File 'app/services/web_hook_service.rb', line 9 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'app/services/web_hook_service.rb', line 9 def code @code end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
9 10 11 |
# File 'app/services/web_hook_service.rb', line 9 def headers @headers end |
Instance Method Details
#internal_server_error? ⇒ Boolean
19 20 21 |
# File 'app/services/web_hook_service.rb', line 19 def internal_server_error? true end |
#redirection? ⇒ Boolean
15 16 17 |
# File 'app/services/web_hook_service.rb', line 15 def redirection? false end |
#success? ⇒ Boolean
11 12 13 |
# File 'app/services/web_hook_service.rb', line 11 def success? false end |