Class: LinkedRails::Form::Group
- Defined in:
- app/models/linked_rails/form/group.rb
Instance Attribute Summary collapse
-
#collapsible ⇒ Object
Returns the value of attribute collapsible.
- #description ⇒ Object
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#footer ⇒ Object
Returns the value of attribute footer.
-
#hidden ⇒ Object
Returns the value of attribute hidden.
-
#key ⇒ Object
writeonly
Sets the attribute key.
- #label ⇒ Object
Attributes inherited from Resource
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Group
constructor
A new instance of Group.
- #rdf_type ⇒ Object
Methods inherited from Resource
Methods included from Model
#build_child, #singular_resource?
Methods included from Model::Serialization
#preview_includes, #show_includes
Methods included from Model::Iri
#anonymous_iri, #anonymous_iri?, #iri, #iri_opts, #reload, #root_relative_iri, #route_fragment
Methods included from Model::Enhancements
Methods included from Model::Dirty
#previous_changes_by_predicate, #previously_changed_relations
Methods included from Model::Collections
#collection_for, #parent_collections
Constructor Details
#initialize(attrs = {}) ⇒ Group
Returns a new instance of Group.
9 10 11 12 |
# File 'app/models/linked_rails/form/group.rb', line 9 def initialize(attrs = {}) super(attrs) self.fields = [] end |
Instance Attribute Details
#collapsible ⇒ Object
Returns the value of attribute collapsible.
6 7 8 |
# File 'app/models/linked_rails/form/group.rb', line 6 def collapsible @collapsible end |
#description ⇒ Object
14 15 16 17 |
# File 'app/models/linked_rails/form/group.rb', line 14 def description @description = @description.call if @description.respond_to?(:call) @description end |
#fields ⇒ Object
Returns the value of attribute fields.
6 7 8 |
# File 'app/models/linked_rails/form/group.rb', line 6 def fields @fields end |
#footer ⇒ Object
Returns the value of attribute footer.
6 7 8 |
# File 'app/models/linked_rails/form/group.rb', line 6 def @footer end |
#hidden ⇒ Object
Returns the value of attribute hidden.
6 7 8 |
# File 'app/models/linked_rails/form/group.rb', line 6 def hidden @hidden end |
#key=(value) ⇒ Object (writeonly)
Sets the attribute key
7 8 9 |
# File 'app/models/linked_rails/form/group.rb', line 7 def key=(value) @key = value end |
#label ⇒ Object
19 20 21 22 |
# File 'app/models/linked_rails/form/group.rb', line 19 def label @label = @label.call if @label.respond_to?(:call) @label end |
Class Method Details
.iri ⇒ Object
33 34 35 |
# File 'app/models/linked_rails/form/group.rb', line 33 def iri Vocab.form[:Group] end |