Class: Gitlab::HealthChecks::Probes::Status
- Inherits:
-
Struct
- Object
- Struct
- Gitlab::HealthChecks::Probes::Status
- Defined in:
- lib/gitlab/health_checks/probes/status.rb
Instance Attribute Summary collapse
-
#http_status ⇒ Object
Returns the value of attribute http_status.
-
#json ⇒ Object
Returns the value of attribute json.
Instance Method Summary collapse
-
#success? ⇒ Boolean
We accept 2xx.
Instance Attribute Details
#http_status ⇒ Object
Returns the value of attribute http_status
7 8 9 |
# File 'lib/gitlab/health_checks/probes/status.rb', line 7 def http_status @http_status end |
#json ⇒ Object
Returns the value of attribute json
7 8 9 |
# File 'lib/gitlab/health_checks/probes/status.rb', line 7 def json @json end |
Instance Method Details
#success? ⇒ Boolean
We accept 2xx
9 10 11 |
# File 'lib/gitlab/health_checks/probes/status.rb', line 9 def success? http_status / 100 == 2 end |