Class: Danger::CISource::CI
- Inherits:
-
Object
- Object
- Danger::CISource::CI
- Defined in:
- lib/danger/ci_source/ci_source.rb
Overview
“abstract” CI class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#pull_request_id ⇒ Object
Returns the value of attribute pull_request_id.
-
#repo_slug ⇒ Object
Returns the value of attribute repo_slug.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(_env) ⇒ CI
constructor
A new instance of CI.
Constructor Details
#initialize(_env) ⇒ CI
Returns a new instance of CI.
11 12 13 |
# File 'lib/danger/ci_source/ci_source.rb', line 11 def initialize(_env) raise "Subclass and overwrite initialize" end |
Instance Attribute Details
#pull_request_id ⇒ Object
Returns the value of attribute pull_request_id.
5 6 7 |
# File 'lib/danger/ci_source/ci_source.rb', line 5 def pull_request_id @pull_request_id end |
#repo_slug ⇒ Object
Returns the value of attribute repo_slug.
5 6 7 |
# File 'lib/danger/ci_source/ci_source.rb', line 5 def repo_slug @repo_slug end |
Class Method Details
.validates?(_env) ⇒ Boolean
7 8 9 |
# File 'lib/danger/ci_source/ci_source.rb', line 7 def self.validates?(_env) false end |