Class: Datadog::CI::Git::BaseBranchShaDetection::Base
- Inherits:
-
Object
- Object
- Datadog::CI::Git::BaseBranchShaDetection::Base
- Defined in:
- lib/datadog/ci/git/base_branch_sha_detection/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#remote_name ⇒ Object
readonly
Returns the value of attribute remote_name.
-
#source_branch ⇒ Object
readonly
Returns the value of attribute source_branch.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(remote_name, source_branch) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(remote_name, source_branch) ⇒ Base
Returns a new instance of Base.
13 14 15 16 |
# File 'lib/datadog/ci/git/base_branch_sha_detection/base.rb', line 13 def initialize(remote_name, source_branch) @remote_name = remote_name @source_branch = source_branch end |
Instance Attribute Details
#remote_name ⇒ Object (readonly)
Returns the value of attribute remote_name.
10 11 12 |
# File 'lib/datadog/ci/git/base_branch_sha_detection/base.rb', line 10 def remote_name @remote_name end |
#source_branch ⇒ Object (readonly)
Returns the value of attribute source_branch.
11 12 13 |
# File 'lib/datadog/ci/git/base_branch_sha_detection/base.rb', line 11 def source_branch @source_branch end |
Instance Method Details
#call ⇒ Object
18 19 20 |
# File 'lib/datadog/ci/git/base_branch_sha_detection/base.rb', line 18 def call raise NotImplementedError, "Subclasses must implement #call" end |