Class: KirguduBase::DynamicPages::Group

Inherits:
PageElement show all
Defined in:
app/models/kirgudu_base/dynamic_pages/group.rb

Instance Attribute Summary collapse

Attributes inherited from PageElement

#enabled, #html_options, #id, #name, #use_i18n, #visible

Attributes inherited from Element

#parent_entry

Instance Method Summary collapse

Methods inherited from PageElement

#i18n_data_as_string

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

#fix_parent_entry

Methods included from Models::MergeableElements::InstanceMethods

#merge

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(options = {})
	self.elements = []
	super(options)
end

Instance Attribute Details

#elementsObject

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(options = {})
	options ||= {}
	options.merge!({
	                   elements: elements
	               })
	super(options)
end