Class: BzrWrapper::Commit

Inherits:
Object
  • Object
show all
Defined in:
lib/bzrwrapper.rb

Overview

represents single commit / checkin

Instance Attribute Summary collapse

Instance Method Summary collapse

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,timestamp,message,merged=nil)
  @revno,@committer,@branch_nick,@timestamp,@message,@merged = revno,committer,branch_nick,timestamp,message,merged
end

Instance Attribute Details

#branch_nickObject (readonly)

Returns the value of attribute branch_nick.



223
224
225
# File 'lib/bzrwrapper.rb', line 223

def branch_nick
  @branch_nick
end

#committerObject (readonly)

Returns the value of attribute committer.



223
224
225
# File 'lib/bzrwrapper.rb', line 223

def committer
  @committer
end

#mergedObject (readonly)

Returns the value of attribute merged.



223
224
225
# File 'lib/bzrwrapper.rb', line 223

def merged
  @merged
end

#messageObject (readonly)

Returns the value of attribute message.



223
224
225
# File 'lib/bzrwrapper.rb', line 223

def message
  @message
end

#revnoObject (readonly)

Returns the value of attribute revno.



223
224
225
# File 'lib/bzrwrapper.rb', line 223

def revno
  @revno
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



223
224
225
# File 'lib/bzrwrapper.rb', line 223

def timestamp
  @timestamp
end

Instance Method Details

#timeObject

returns time-object of this commit



231
232
233
# File 'lib/bzrwrapper.rb', line 231

def time
  Time.parse(@timestamp)
end