Class: Citrus::Core::Commit
- Inherits:
-
Object
- Object
- Citrus::Core::Commit
- Defined in:
- lib/citrus/core/commit.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#sha ⇒ Object
readonly
Returns the value of attribute sha.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(sha, author, message, timestamp, changes, url = nil) ⇒ Commit
constructor
A new instance of Commit.
Constructor Details
#initialize(sha, author, message, timestamp, changes, url = nil) ⇒ Commit
Returns a new instance of Commit.
9 10 11 12 13 14 15 16 |
# File 'lib/citrus/core/commit.rb', line 9 def initialize(sha, , , , changes, url = nil) @sha = sha @url = url @author = @message = @changes = changes @timestamp = end |
Instance Attribute Details
#author ⇒ Object (readonly)
Returns the value of attribute author.
7 8 9 |
# File 'lib/citrus/core/commit.rb', line 7 def @author end |
#changes ⇒ Object (readonly)
Returns the value of attribute changes.
7 8 9 |
# File 'lib/citrus/core/commit.rb', line 7 def changes @changes end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
7 8 9 |
# File 'lib/citrus/core/commit.rb', line 7 def @message end |
#sha ⇒ Object (readonly)
Returns the value of attribute sha.
7 8 9 |
# File 'lib/citrus/core/commit.rb', line 7 def sha @sha end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
7 8 9 |
# File 'lib/citrus/core/commit.rb', line 7 def @timestamp end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
7 8 9 |
# File 'lib/citrus/core/commit.rb', line 7 def url @url end |