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

Constructor Details

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

Instance Method Details

#create_entry(xmlelement) ⇒ Object



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

def create_entry xmlelement
  Entry.new xmlelement
end

#get_elements(doc) ⇒ Object



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

def get_elements doc
  doc.elements['log'].elements
end

#match(action, filter) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/svnx/log/entries.rb', line 22

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