Class: Blobs::Notebook

Inherits:
Blob
  • Object
show all
Defined in:
app/models/blobs/notebook.rb

Constant Summary

Constants inherited from Blob

Blob::AUXILIARY_VIEWERS, Blob::CACHE_TIME, Blob::CACHE_TIME_IMMUTABLE, Blob::MODE_EXECUTABLE, Blob::MODE_SYMLINK, Blob::RICH_VIEWERS

Instance Attribute Summary collapse

Attributes inherited from Blob

#container

Instance Method Summary collapse

Methods inherited from Blob

#audio?, #auxiliary_viewer, #binary?, decorate, #empty?, #executable?, #expand!, #expanded?, #extension, #external_storage_error?, #file_type, #inspect, lazy, #load_all_data!, #raw_size, #readable_text?, #rendered_as_text?, #rich_viewer, #show_viewer_switcher?, #simple_viewer, #stored_externally?, #symlink?, #video?

Methods included from BlobActiveModel

#to_ability_name

Methods included from BlobLanguageFromGitAttributes

#language_from_gitattributes

Methods included from Presentable

#present

Constructor Details

#initialize(blob, data) ⇒ Notebook

Returns a new instance of Notebook.


7
8
9
10
# File 'app/models/blobs/notebook.rb', line 7

def initialize(blob, data)
  super(blob.__getobj__, blob.container)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.


5
6
7
# File 'app/models/blobs/notebook.rb', line 5

def data
  @data
end