Class: Gitlab::Chat::Responder::Base
- Inherits:
-
Object
- Object
- Gitlab::Chat::Responder::Base
- Defined in:
- lib/gitlab/chat/responder/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#build ⇒ Object
readonly
Returns the value of attribute build.
Instance Method Summary collapse
- #failure ⇒ Object
-
#initialize(build) ⇒ Base
constructor
build - The ‘Ci::Build` that was executed.
- #pipeline ⇒ Object
- #project ⇒ Object
- #scheduled_output ⇒ Object
- #send_response(output) ⇒ Object
- #success ⇒ Object
Constructor Details
#initialize(build) ⇒ Base
build - The ‘Ci::Build` that was executed.
10 11 12 |
# File 'lib/gitlab/chat/responder/base.rb', line 10 def initialize(build) @build = build end |
Instance Attribute Details
#build ⇒ Object (readonly)
Returns the value of attribute build.
7 8 9 |
# File 'lib/gitlab/chat/responder/base.rb', line 7 def build @build end |
Instance Method Details
#failure ⇒ Object
26 27 28 |
# File 'lib/gitlab/chat/responder/base.rb', line 26 def failure raise NotImplementedError, 'You must implement #failure' end |
#pipeline ⇒ Object
14 15 16 |
# File 'lib/gitlab/chat/responder/base.rb', line 14 def pipeline build.pipeline end |
#project ⇒ Object
18 19 20 |
# File 'lib/gitlab/chat/responder/base.rb', line 18 def project pipeline.project end |
#scheduled_output ⇒ Object
34 35 36 |
# File 'lib/gitlab/chat/responder/base.rb', line 34 def scheduled_output raise NotImplementedError, 'You must implement #scheduled_output' end |
#send_response(output) ⇒ Object
30 31 32 |
# File 'lib/gitlab/chat/responder/base.rb', line 30 def send_response(output) raise NotImplementedError, 'You must implement #send_response(output)' end |
#success ⇒ Object
22 23 24 |
# File 'lib/gitlab/chat/responder/base.rb', line 22 def success(*) raise NotImplementedError, 'You must implement #success(output)' end |