Class: EmergeCLI::GitResult
- Inherits:
-
Object
- Object
- EmergeCLI::GitResult
- Defined in:
- lib/utils/git_result.rb
Instance Attribute Summary collapse
-
#base_sha ⇒ Object
Returns the value of attribute base_sha.
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#pr_number ⇒ Object
Returns the value of attribute pr_number.
-
#previous_sha ⇒ Object
Returns the value of attribute previous_sha.
-
#repo_name ⇒ Object
Returns the value of attribute repo_name.
-
#sha ⇒ Object
Returns the value of attribute sha.
Instance Method Summary collapse
-
#initialize(sha:, base_sha:, branch:, pr_number: nil, repo_name: nil, previous_sha: nil) ⇒ GitResult
constructor
A new instance of GitResult.
Constructor Details
#initialize(sha:, base_sha:, branch:, pr_number: nil, repo_name: nil, previous_sha: nil) ⇒ GitResult
Returns a new instance of GitResult.
5 6 7 8 9 10 11 12 |
# File 'lib/utils/git_result.rb', line 5 def initialize(sha:, base_sha:, branch:, pr_number: nil, repo_name: nil, previous_sha: nil) @pr_number = pr_number @sha = sha @base_sha = base_sha @previous_sha = previous_sha @branch = branch @repo_name = repo_name end |
Instance Attribute Details
#base_sha ⇒ Object
Returns the value of attribute base_sha.
3 4 5 |
# File 'lib/utils/git_result.rb', line 3 def base_sha @base_sha end |
#branch ⇒ Object
Returns the value of attribute branch.
3 4 5 |
# File 'lib/utils/git_result.rb', line 3 def branch @branch end |
#pr_number ⇒ Object
Returns the value of attribute pr_number.
3 4 5 |
# File 'lib/utils/git_result.rb', line 3 def pr_number @pr_number end |
#previous_sha ⇒ Object
Returns the value of attribute previous_sha.
3 4 5 |
# File 'lib/utils/git_result.rb', line 3 def previous_sha @previous_sha end |
#repo_name ⇒ Object
Returns the value of attribute repo_name.
3 4 5 |
# File 'lib/utils/git_result.rb', line 3 def repo_name @repo_name end |
#sha ⇒ Object
Returns the value of attribute sha.
3 4 5 |
# File 'lib/utils/git_result.rb', line 3 def sha @sha end |