Class: SVNx::Info::Entry
Instance Attribute Summary collapse
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
Methods inherited from Entry
#get_attribute, #get_element_text, #initialize, #set_attr_var, #set_elmt_var, #set_var
Constructor Details
This class inherits a constructor from SVNx::Entry
Instance Attribute Details
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
12 13 14 |
# File 'lib/svnx/info/entry.rb', line 12 def kind @kind end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
13 14 15 |
# File 'lib/svnx/info/entry.rb', line 13 def path @path end |
#revision ⇒ Object (readonly)
Returns the value of attribute revision.
14 15 16 |
# File 'lib/svnx/info/entry.rb', line 14 def revision @revision end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
11 12 13 |
# File 'lib/svnx/info/entry.rb', line 11 def root @root end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
10 11 12 |
# File 'lib/svnx/info/entry.rb', line 10 def url @url end |
Instance Method Details
#set_from_element(elmt) ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/svnx/info/entry.rb', line 28 def set_from_element elmt set_attr_var elmt, 'kind' set_attr_var elmt, 'path' set_attr_var elmt, 'revision' set_elmt_var elmt, 'url' repo = elmt.elements['repository'] set_elmt_var repo, 'root' end |
#set_from_xml(xmldoc) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/svnx/info/entry.rb', line 16 def set_from_xml xmldoc entry = xmldoc.elements['info/entry'] set_attr_var entry, 'kind' set_attr_var entry, 'path' set_attr_var entry, 'revision' set_elmt_var entry, 'url' repo = entry.elements['repository'] set_elmt_var repo, 'root' end |