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.
10 11 12 13 14 |
# File 'lib/raykit/git/commit.rb', line 10 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.
8 9 10 |
# File 'lib/raykit/git/commit.rb', line 8 def commit_id @commit_id end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/raykit/git/commit.rb', line 6 def url @url end |