Class: ROM::Git::Dataset
- Inherits:
-
Memory::Dataset
- Object
- Memory::Dataset
- ROM::Git::Dataset
- Defined in:
- lib/rom/git/dataset.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.row_proc ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/rom/git/dataset.rb', line 10 def self.row_proc lambda do |row| { sha1: row[:id_new] || row[:sha1], message: row[:message], committer: (row[:committer].fetch(:name, 'unknown committer name') rescue row[:committer].to_s) } end end |
Instance Method Details
#count ⇒ Object
24 25 26 |
# File 'lib/rom/git/dataset.rb', line 24 def count @data.count end |
#reload! ⇒ Object
20 21 22 |
# File 'lib/rom/git/dataset.rb', line 20 def reload! @data = gateway.reset_data end |