Class: KirguduBase::DynamicPages::Group
- Inherits:
-
PageElement
- Object
- Element
- PageElement
- KirguduBase::DynamicPages::Group
- Defined in:
- app/models/kirgudu_base/dynamic_pages/group.rb
Instance Attribute Summary collapse
-
#elements ⇒ Object
Returns the value of attribute elements.
Attributes inherited from PageElement
#enabled, #html_options, #id, #name, #use_i18n, #visible
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Group
constructor
A new instance of Group.
- #to_external_hash(options = {}) ⇒ Object
Methods inherited from PageElement
Methods inherited from Element
#as_json, #fix_parent_entry, #kontroller_klass
Methods included from Models::MergeableElements::ClassMethods
#get_mergeable_attributes, #mergeable_attributes
Methods included from Models::FixableElements::ClassMethods
#fixable_attributes, #get_kb_fixable_attributes
Methods included from Models::FixableElements::InstanceMethods
Methods included from Models::MergeableElements::InstanceMethods
Constructor Details
#initialize(options = {}) ⇒ Group
Returns a new instance of Group.
9 10 11 12 |
# File 'app/models/kirgudu_base/dynamic_pages/group.rb', line 9 def initialize( = {}) self.elements = [] super() end |
Instance Attribute Details
#elements ⇒ Object
Returns the value of attribute elements.
14 15 16 |
# File 'app/models/kirgudu_base/dynamic_pages/group.rb', line 14 def elements @elements end |
Instance Method Details
#to_external_hash(options = {}) ⇒ Object
16 17 18 19 20 21 22 |
# File 'app/models/kirgudu_base/dynamic_pages/group.rb', line 16 def to_external_hash( = {}) ||= {} .merge!({ elements: elements }) super() end |