Class: Raykit::Git::Commit
- Inherits:
-
Object
- Object
- Raykit::Git::Commit
- Defined in:
- lib/raykit/git/commit.rb
Overview
Functionality to manage a git commit
Instance Attribute Summary collapse
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#commit_id ⇒ Object
Returns the value of attribute commit_id.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, branch, commit_id) ⇒ Commit
constructor
A new instance of Commit.
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
#branch ⇒ Object
Returns the value of attribute branch.
7 8 9 |
# File 'lib/raykit/git/commit.rb', line 7 def branch @branch end |
#commit_id ⇒ Object
Returns the value of attribute commit_id.
7 8 9 |
# File 'lib/raykit/git/commit.rb', line 7 def commit_id @commit_id end |
#url ⇒ Object
Returns the value of attribute url.
7 8 9 |
# File 'lib/raykit/git/commit.rb', line 7 def url @url end |