Class: WebpageArchivist::Stylesheet

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



191
192
193
# File 'lib/webpage-archivist/models.rb', line 191

def self.extention uri, content_type
  '.css'
end

Instance Method Details

#extension=(extension) ⇒ Object



195
196
197
# File 'lib/webpage-archivist/models.rb', line 195

def extension= extension
  # do nothing
end

#file_nameObject



187
188
189
# File 'lib/webpage-archivist/models.rb', line 187

def file_name
  "#{file_hash}.css"
end