Class: LinkedRails::Form::Group
- Defined in:
- app/models/linked_rails/form/group.rb
Constant Summary
Constants included from Model::Collections
Model::Collections::COLLECTION_CUSTOMIZABLE_OPTIONS, Model::Collections::COLLECTION_OPTIONS, Model::Collections::COLLECTION_STATIC_OPTIONS
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
Methods included from Model::Singularable
#root_relative_iri, #root_relative_singular_iri, #singular_iri, #singular_iri?, #singular_iri_opts, #singular_iri_template, #singular_resource?
Methods included from Model::Serialization
#preview_includes, #show_includes
Methods included from Model::Menuable
Methods included from Model::IRI
#anonymous_iri, #anonymous_iri?, #iri, #iri_elements, #iri_opts, #reload, #root_relative_iri, #route_fragment
Methods included from Model::Enhancements
Methods included from Model::Dirty
Methods included from Model::Collections
#collection_for, #collection_iri, #collection_options_for, #collection_root_relative_iri, #parent_collections
Methods included from Model::Actionable
#action, #action_list, #action_triples, #actions, #collection_actions, #favorite_actions
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 |
# File 'app/models/linked_rails/form/group.rb', line 14 def description @description.respond_to?(:call) ? @description.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
18 19 20 |
# File 'app/models/linked_rails/form/group.rb', line 18 def label @label.respond_to?(:call) ? @label.call : @label end |
Class Method Details
.iri ⇒ Object
31 32 33 |
# File 'app/models/linked_rails/form/group.rb', line 31 def iri Vocab.form[:Group] end |