Class: Druzy::LittleFrame::FileChooserModel
- Inherits:
-
MVC::ModelWithResult
- Object
- MVC::ModelWithResult
- Druzy::LittleFrame::FileChooserModel
- Defined in:
- lib/druzy/little_frame/file_chooser.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
Returns the value of attribute files.
-
#filters_mime_type ⇒ Object
Returns the value of attribute filters_mime_type.
Instance Method Summary collapse
-
#initialize(args) ⇒ FileChooserModel
constructor
A new instance of FileChooserModel.
Constructor Details
#initialize(args) ⇒ FileChooserModel
Returns a new instance of FileChooserModel.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/druzy/little_frame/file_chooser.rb', line 35 def initialize(args) if args[:filter_mime_type] != nil initialize(:filters_mime_type => [args[:filter_mime_type]]) else super() @files = nil @filters_mime_type=args[:filters_mime_type] end end |
Instance Attribute Details
#files ⇒ Object
Returns the value of attribute files.
33 34 35 |
# File 'lib/druzy/little_frame/file_chooser.rb', line 33 def files @files end |
#filters_mime_type ⇒ Object
Returns the value of attribute filters_mime_type.
33 34 35 |
# File 'lib/druzy/little_frame/file_chooser.rb', line 33 def filters_mime_type @filters_mime_type end |