Class: Svnx::Propget::Entry

Inherits:
Base::Entry show all
Defined in:
lib/svnx/propget/entry.rb

Instance Attribute Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



13
14
15
# File 'lib/svnx/propget/entry.rb', line 13

def path
  @path
end

#valueObject (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