Class: Trifle::Docs::Harvester::File::Conveyor

Inherits:
Conveyor
  • Object
show all
Defined in:
lib/trifle/docs/harvester/file.rb

Instance Attribute Summary

Attributes inherited from Conveyor

#cache, #file, #namespace, #url

Instance Method Summary collapse

Methods inherited from Conveyor

#data, #initialize

Constructor Details

This class inherits a constructor from Trifle::Docs::Harvester::Conveyor

Instance Method Details

#contentObject



18
19
20
# File 'lib/trifle/docs/harvester/file.rb', line 18

def content
  data
end

#metaObject



22
23
24
25
26
27
28
# File 'lib/trifle/docs/harvester/file.rb', line 22

def meta
  {
    'path' => file,
    'type' => 'file',
    'updated_at' => ::File.stat(file).mtime
  }
end