Class: Gitlab::Git::OperationService::BranchUpdate
- Inherits:
-
Struct
- Object
- Struct
- Gitlab::Git::OperationService::BranchUpdate
- Defined in:
- lib/gitlab/git/operation_service.rb
Instance Attribute Summary collapse
-
#branch_created ⇒ Object
(also: #branch_created?)
Returns the value of attribute branch_created.
-
#newrev ⇒ Object
Returns the value of attribute newrev.
-
#repo_created ⇒ Object
(also: #repo_created?)
Returns the value of attribute repo_created.
Class Method Summary collapse
Instance Attribute Details
#branch_created ⇒ Object Also known as: branch_created?
Returns the value of attribute branch_created
6 7 8 |
# File 'lib/gitlab/git/operation_service.rb', line 6 def branch_created @branch_created end |
#newrev ⇒ Object
Returns the value of attribute newrev
6 7 8 |
# File 'lib/gitlab/git/operation_service.rb', line 6 def newrev @newrev end |
#repo_created ⇒ Object Also known as: repo_created?
Returns the value of attribute repo_created
6 7 8 |
# File 'lib/gitlab/git/operation_service.rb', line 6 def repo_created @repo_created end |
Class Method Details
.from_gitaly(branch_update) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/gitlab/git/operation_service.rb', line 10 def self.from_gitaly(branch_update) return if branch_update.nil? new( branch_update.commit_id, branch_update.repo_created, branch_update.branch_created ) end |