Class: Raykit::Git::Commit

Inherits:
Object
  • Object
show all
Defined in:
lib/raykit/git/commit.rb

Overview

Functionality to manage a git commit

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, branch, commit_id) ⇒ Commit

Returns a new instance of Commit.



9
10
11
12
13
# File 'lib/raykit/git/commit.rb', line 9

def initialize(url, branch, commit_id)
  @url = url
  @branch = branch
  @commit_id = commit_id
end

Instance Attribute Details

#branchObject

Returns the value of attribute branch.



7
8
9
# File 'lib/raykit/git/commit.rb', line 7

def branch
  @branch
end

#commit_idObject

Returns the value of attribute commit_id.



7
8
9
# File 'lib/raykit/git/commit.rb', line 7

def commit_id
  @commit_id
end

#urlObject

Returns the value of attribute url.



7
8
9
# File 'lib/raykit/git/commit.rb', line 7

def url
  @url
end