Class: Svnx::Status::WorkingCopy
- Inherits:
-
Object
- Object
- Svnx::Status::WorkingCopy
- Defined in:
- lib/svnx/status/entry.rb
Instance Attribute Summary collapse
-
#commit ⇒ Object
readonly
Returns the value of attribute commit.
-
#properties ⇒ Object
readonly
Returns the value of attribute properties.
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(wcstatus) ⇒ WorkingCopy
constructor
A new instance of WorkingCopy.
Constructor Details
#initialize(wcstatus) ⇒ WorkingCopy
Returns a new instance of WorkingCopy.
32 33 34 35 36 37 38 |
# File 'lib/svnx/status/entry.rb', line 32 def initialize wcstatus @properties = wcstatus['props'] @status = Svnx::Action.new wcstatus['item'] @revision = (n = wcstatus['revision']) && n.to_i commit = wcstatus.at_xpath 'commit' @commit = commit && Commit.new(commit) end |
Instance Attribute Details
#commit ⇒ Object (readonly)
Returns the value of attribute commit.
30 31 32 |
# File 'lib/svnx/status/entry.rb', line 30 def commit @commit end |
#properties ⇒ Object (readonly)
Returns the value of attribute properties.
27 28 29 |
# File 'lib/svnx/status/entry.rb', line 27 def properties @properties end |
#revision ⇒ Object (readonly)
Returns the value of attribute revision.
29 30 31 |
# File 'lib/svnx/status/entry.rb', line 29 def revision @revision end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
28 29 30 |
# File 'lib/svnx/status/entry.rb', line 28 def status @status end |