Class: Druzy::LittleFrame::FileChooserModel

Inherits:
MVC::ModelWithResult
  • Object
show all
Defined in:
lib/druzy/little_frame/file_chooser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filesObject

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_typeObject

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