Class: WebpageArchivist::Script
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- WebpageArchivist::Script
- Includes:
- WebpageElement
- Defined in:
- lib/webpage-archivist/models.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from WebpageElement
Methods included from ElementWithContent
Class Method Details
.extention(uri, content_type) ⇒ Object
172 173 174 |
# File 'lib/webpage-archivist/models.rb', line 172 def self.extention uri, content_type '.js' end |
Instance Method Details
#extension=(extension) ⇒ Object
176 177 178 |
# File 'lib/webpage-archivist/models.rb', line 176 def extension= extension # do nothing end |
#file_name ⇒ Object
168 169 170 |
# File 'lib/webpage-archivist/models.rb', line 168 def file_name "#{file_hash}.js" end |