Class: Svnx::Status::Commit

Inherits:
Object
  • Object
show all
Defined in:
lib/svnx/status/entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elmt) ⇒ Commit

Returns a new instance of Commit.



18
19
20
21
22
23
# File 'lib/svnx/status/entry.rb', line 18

def initialize elmt
  rev = elmt['revision']
  @revision = rev.nil? ? rev : rev.to_i
  @author = elmt.at_xpath('author').text
  @date = elmt.at_xpath('date').text
end

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



15
16
17
# File 'lib/svnx/status/entry.rb', line 15

def author
  @author
end

#dateObject (readonly)

Returns the value of attribute date.



16
17
18
# File 'lib/svnx/status/entry.rb', line 16

def date
  @date
end

#revisionObject (readonly)

Returns the value of attribute revision.



14
15
16
# File 'lib/svnx/status/entry.rb', line 14

def revision
  @revision
end