Class: Panda::Core::Admin::FileGalleryComponent
- Defined in:
- app/components/panda/core/admin/file_gallery_component.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#blob_categories ⇒ Object
readonly
Returns the value of attribute blob_categories.
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#selected_file ⇒ Object
readonly
Returns the value of attribute selected_file.
Instance Method Summary collapse
-
#initialize(selected_file: nil, files: [], blob_categories: {}, **attrs) ⇒ FileGalleryComponent
constructor
A new instance of FileGalleryComponent.
Constructor Details
#initialize(selected_file: nil, files: [], blob_categories: {}, **attrs) ⇒ FileGalleryComponent
Returns a new instance of FileGalleryComponent.
7 8 9 10 11 12 |
# File 'app/components/panda/core/admin/file_gallery_component.rb', line 7 def initialize(selected_file: nil, files: [], blob_categories: {}, **attrs) @files = files @selected_file = selected_file @blob_categories = blob_categories super(**attrs) end |
Instance Attribute Details
#blob_categories ⇒ Object (readonly)
Returns the value of attribute blob_categories.
14 15 16 |
# File 'app/components/panda/core/admin/file_gallery_component.rb', line 14 def blob_categories @blob_categories end |
#files ⇒ Object (readonly)
Returns the value of attribute files.
14 15 16 |
# File 'app/components/panda/core/admin/file_gallery_component.rb', line 14 def files @files end |
#selected_file ⇒ Object (readonly)
Returns the value of attribute selected_file.
14 15 16 |
# File 'app/components/panda/core/admin/file_gallery_component.rb', line 14 def selected_file @selected_file end |