Class: Blobs::Notebook
- 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
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Attributes inherited from Blob
Instance Method Summary collapse
-
#initialize(blob, data) ⇒ Notebook
constructor
A new instance of Notebook.
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
Methods included from BlobLanguageFromGitAttributes
Methods included from Presentable
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'app/models/blobs/notebook.rb', line 5 def data @data end |