Class: Svnx::Propget::Entry
- Inherits:
-
Base::Entry
- Object
- Base::Entry
- Svnx::Propget::Entry
- Defined in:
- lib/svnx/propget/entry.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
Methods inherited from Base::Entry
#attribute_value, #element_text, #initialize, #set_attr_var, #set_attr_vars, #set_elmt_var, #set_elmt_vars, #set_var
Constructor Details
This class inherits a constructor from Svnx::Base::Entry
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/svnx/propget/entry.rb', line 14 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
13 14 15 |
# File 'lib/svnx/propget/entry.rb', line 13 def path @path end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
15 16 17 |
# File 'lib/svnx/propget/entry.rb', line 15 def value @value end |
Instance Method Details
#set_from_element(elmt) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/svnx/propget/entry.rb', line 17 def set_from_element elmt set_attr_vars elmt, :path prop = elmt.at_xpath "property" set_attr_vars prop, :name @value = prop.text end |