Class: Ghub::Models::StatusCheck
- Inherits:
-
Struct
- Object
- Struct
- Ghub::Models::StatusCheck
- Defined in:
- lib/ghub/models/status_check.rb
Overview
Defines a status check.
Instance Attribute Summary collapse
-
#checks ⇒ Object
Returns the value of attribute checks.
-
#contexts ⇒ Object
Returns the value of attribute contexts.
-
#contexts_url ⇒ Object
Returns the value of attribute contexts_url.
-
#enforcement_level ⇒ Object
Returns the value of attribute enforcement_level.
-
#strict ⇒ Object
Returns the value of attribute strict.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ StatusCheck
constructor
A new instance of StatusCheck.
Constructor Details
#initialize ⇒ StatusCheck
Returns a new instance of StatusCheck.
20 21 22 23 |
# File 'lib/ghub/models/status_check.rb', line 20 def initialize(**) super freeze end |
Instance Attribute Details
#checks ⇒ Object
Returns the value of attribute checks
6 7 8 |
# File 'lib/ghub/models/status_check.rb', line 6 def checks @checks end |
#contexts ⇒ Object
Returns the value of attribute contexts
6 7 8 |
# File 'lib/ghub/models/status_check.rb', line 6 def contexts @contexts end |
#contexts_url ⇒ Object
Returns the value of attribute contexts_url
6 7 8 |
# File 'lib/ghub/models/status_check.rb', line 6 def contexts_url @contexts_url end |
#enforcement_level ⇒ Object
Returns the value of attribute enforcement_level
6 7 8 |
# File 'lib/ghub/models/status_check.rb', line 6 def enforcement_level @enforcement_level end |
#strict ⇒ Object
Returns the value of attribute strict
6 7 8 |
# File 'lib/ghub/models/status_check.rb', line 6 def strict @strict end |
#url ⇒ Object
Returns the value of attribute url
6 7 8 |
# File 'lib/ghub/models/status_check.rb', line 6 def url @url end |
Class Method Details
.for(**attributes) ⇒ Object
14 15 16 17 18 |
# File 'lib/ghub/models/status_check.rb', line 14 def self.for(**attributes) new( **attributes.merge!(checks: attributes[:checks].map { |arguments| Check[**arguments] }) ) end |