Class: WebpageArchivist::Script

Inherits:
Sequel::Model
  • Object
show all
Includes:
WebpageElement
Defined in:
lib/webpage-archivist/models.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from WebpageElement

#validate

Methods included from ElementWithContent

#save_content

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_nameObject



168
169
170
# File 'lib/webpage-archivist/models.rb', line 168

def file_name
  "#{file_hash}.js"
end