Class: Druzy::LittleFrame::FileChooserModel
- Inherits:
-
MVC::Model
- Object
- MVC::Model
- 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.
-
#result ⇒ Object
Returns the value of attribute result.
-
#stopped_thread ⇒ Object
Returns the value of attribute stopped_thread.
Instance Method Summary collapse
-
#initialize(args) ⇒ FileChooserModel
constructor
A new instance of FileChooserModel.
Constructor Details
#initialize(args) ⇒ FileChooserModel
Returns a new instance of FileChooserModel.
44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/druzy/little_frame/file_chooser.rb', line 44 def initialize(args) if args[:filter_mime_type] != nil initialize(:filters_mime_type => [args[:filter_mime_type]]) else super() @files = nil @result = nil @stopped_thread = nil @filters_mime_type=args[:filters_mime_type] end end |
Instance Attribute Details
#files ⇒ Object
Returns the value of attribute files.
42 43 44 |
# File 'lib/druzy/little_frame/file_chooser.rb', line 42 def files @files end |
#filters_mime_type ⇒ Object
Returns the value of attribute filters_mime_type.
42 43 44 |
# File 'lib/druzy/little_frame/file_chooser.rb', line 42 def filters_mime_type @filters_mime_type end |
#result ⇒ Object
Returns the value of attribute result.
42 43 44 |
# File 'lib/druzy/little_frame/file_chooser.rb', line 42 def result @result end |
#stopped_thread ⇒ Object
Returns the value of attribute stopped_thread.
42 43 44 |
# File 'lib/druzy/little_frame/file_chooser.rb', line 42 def stopped_thread @stopped_thread end |