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