Class: Svnx::Status::Commit
- Inherits:
-
Object
- Object
- Svnx::Status::Commit
- Defined in:
- lib/svnx/status/entry.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
Instance Method Summary collapse
-
#initialize(elmt) ⇒ Commit
constructor
A new instance of Commit.
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
#author ⇒ Object (readonly)
Returns the value of attribute author.
15 16 17 |
# File 'lib/svnx/status/entry.rb', line 15 def @author end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
16 17 18 |
# File 'lib/svnx/status/entry.rb', line 16 def date @date end |
#revision ⇒ Object (readonly)
Returns the value of attribute revision.
14 15 16 |
# File 'lib/svnx/status/entry.rb', line 14 def revision @revision end |