Class: SVNx::Status::Entries

Inherits:
Entries
  • Object
show all
Defined in:
lib/svnx/status/entries.rb

Instance Attribute Summary

Attributes inherited from Entries

#size

Instance Method Summary collapse

Methods inherited from Entries

#[], #each

Constructor Details

#initialize(args = Hash.new) ⇒ Entries

Returns a new instance of Entries.



9
10
11
12
# File 'lib/svnx/status/entries.rb', line 9

def initialize args = Hash.new
  @rootpath = args[:rootpath]
  super
end

Instance Method Details

#create_entry(xmlelement) ⇒ Object



18
19
20
# File 'lib/svnx/status/entries.rb', line 18

def create_entry xmlelement
  Entry.new xmlelement: xmlelement, rootpath: @rootpath
end

#get_elements(doc) ⇒ Object



14
15
16
# File 'lib/svnx/status/entries.rb', line 14

def get_elements doc
  doc.elements['status'].elements['target'].elements
end