Class: WebpageArchivist::Instance
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- WebpageArchivist::Instance
- Defined in:
- lib/webpage-archivist/models.rb
Instance Method Summary collapse
Instance Method Details
#small_snapshot_path ⇒ Object
98 99 100 101 102 |
# File 'lib/webpage-archivist/models.rb', line 98 def small_snapshot_path if snapshot "#{webpage.id}/#{self.id}-small.#{Snapshoter.format}" end end |
#snapshot_path ⇒ Object
104 105 106 107 108 |
# File 'lib/webpage-archivist/models.rb', line 104 def snapshot_path if snapshot "#{webpage.id}/#{self.id}.#{Snapshoter.format}" end end |
#validate ⇒ Object
93 94 95 96 |
# File 'lib/webpage-archivist/models.rb', line 93 def validate super validates_presence [:webpage_id, :commit_timestamp] end |