Class: Svnx::Log::Entries

Inherits:
Base::Entries show all
Defined in:
lib/svnx/log/entries.rb

Instance Attribute Summary

Attributes inherited from Base::Entries

#size

Instance Method Summary collapse

Methods inherited from Base::Entries

#[], #each, #initialize, #to_index

Constructor Details

This class inherits a constructor from Svnx::Base::Entries

Instance Method Details

#create_entry(xmlelement) ⇒ Object



13
14
15
# File 'lib/svnx/log/entries.rb', line 13

def create_entry xmlelement
  Entry.new xmlelement
end

#get_elements(doc) ⇒ Object



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

def get_elements doc
  doc.xpath '//log/logentry'
end

#match(action, filter) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/svnx/log/entries.rb', line 17

def match action, filter
  Array.new.tap do |a|
    each do |entry|
      a.concat entry.match(action, filter)
    end
  end.sort
end