Class: EmergeCLI::GitResult

Inherits:
Object
  • Object
show all
Defined in:
lib/utils/git_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_shaObject

Returns the value of attribute base_sha.



3
4
5
# File 'lib/utils/git_result.rb', line 3

def base_sha
  @base_sha
end

#branchObject

Returns the value of attribute branch.



3
4
5
# File 'lib/utils/git_result.rb', line 3

def branch
  @branch
end

#pr_numberObject

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_shaObject

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_nameObject

Returns the value of attribute repo_name.



3
4
5
# File 'lib/utils/git_result.rb', line 3

def repo_name
  @repo_name
end

#shaObject

Returns the value of attribute sha.



3
4
5
# File 'lib/utils/git_result.rb', line 3

def sha
  @sha
end