Class: OpenRosa::Fields::Upload
- Defined in:
- lib/open_rosa/fields/upload.rb
Overview
Upload field for file/media uploads
Maps to XForms
Instance Attribute Summary collapse
-
#max_pixels ⇒ Object
readonly
Returns the value of attribute max_pixels.
-
#mediatype ⇒ Object
readonly
Returns the value of attribute mediatype.
Attributes inherited from Base
#default, #hint, #label, #name, #required
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Upload
constructor
A new instance of Upload.
Constructor Details
#initialize(name, options = {}) ⇒ Upload
Returns a new instance of Upload.
11 12 13 14 15 |
# File 'lib/open_rosa/fields/upload.rb', line 11 def initialize(name, = {}) super @mediatype = [:mediatype] @max_pixels = [:max_pixels] end |
Instance Attribute Details
#max_pixels ⇒ Object (readonly)
Returns the value of attribute max_pixels.
9 10 11 |
# File 'lib/open_rosa/fields/upload.rb', line 9 def max_pixels @max_pixels end |
#mediatype ⇒ Object (readonly)
Returns the value of attribute mediatype.
9 10 11 |
# File 'lib/open_rosa/fields/upload.rb', line 9 def mediatype @mediatype end |