Class: BzrWrapper::Commit
- Inherits:
-
Object
- Object
- BzrWrapper::Commit
- Defined in:
- lib/bzrwrapper.rb
Overview
represents single commit / checkin
Instance Attribute Summary collapse
-
#branch_nick ⇒ Object
readonly
Returns the value of attribute branch_nick.
-
#committer ⇒ Object
readonly
Returns the value of attribute committer.
-
#merged ⇒ Object
readonly
Returns the value of attribute merged.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#revno ⇒ Object
readonly
Returns the value of attribute revno.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(revno, committer, branch_nick, timestamp, message, merged = nil) ⇒ Commit
constructor
A new instance of Commit.
-
#time ⇒ Object
returns time-object of this commit.
Constructor Details
#initialize(revno, committer, branch_nick, timestamp, message, merged = nil) ⇒ Commit
Returns a new instance of Commit.
225 226 227 |
# File 'lib/bzrwrapper.rb', line 225 def initialize(revno,committer,branch_nick,,,merged=nil) @revno,@committer,@branch_nick,@timestamp,@message,@merged = revno,committer,branch_nick,,,merged end |
Instance Attribute Details
#branch_nick ⇒ Object (readonly)
Returns the value of attribute branch_nick.
223 224 225 |
# File 'lib/bzrwrapper.rb', line 223 def branch_nick @branch_nick end |
#committer ⇒ Object (readonly)
Returns the value of attribute committer.
223 224 225 |
# File 'lib/bzrwrapper.rb', line 223 def committer @committer end |
#merged ⇒ Object (readonly)
Returns the value of attribute merged.
223 224 225 |
# File 'lib/bzrwrapper.rb', line 223 def merged @merged end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
223 224 225 |
# File 'lib/bzrwrapper.rb', line 223 def @message end |
#revno ⇒ Object (readonly)
Returns the value of attribute revno.
223 224 225 |
# File 'lib/bzrwrapper.rb', line 223 def revno @revno end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
223 224 225 |
# File 'lib/bzrwrapper.rb', line 223 def @timestamp end |
Instance Method Details
#time ⇒ Object
returns time-object of this commit
231 232 233 |
# File 'lib/bzrwrapper.rb', line 231 def time Time.parse(@timestamp) end |