Class: KirguduBase::DynamicPages::ListCell

Inherits:
PageElement show all
Defined in:
app/models/kirgudu_base/dynamic_pages/list_cell.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 = {}) ⇒ ListCell

Returns a new instance of ListCell.



9
10
11
12
13
# File 'app/models/kirgudu_base/dynamic_pages/list_cell.rb', line 9

def initialize(options = {})
	self.label = nil
	self.properties = nil
	super(options)
end

Instance Attribute Details

#formatObject

Returns the value of attribute format.



18
19
20
# File 'app/models/kirgudu_base/dynamic_pages/list_cell.rb', line 18

def format
  @format
end

#labelObject

Returns the value of attribute label.



16
17
18
# File 'app/models/kirgudu_base/dynamic_pages/list_cell.rb', line 16

def label
  @label
end

#propertiesObject

Returns the value of attribute properties.



17
18
19
# File 'app/models/kirgudu_base/dynamic_pages/list_cell.rb', line 17

def properties
  @properties
end

Instance Method Details

#to_external_hash(options = {}) ⇒ Object



21
22
23
24
25
26
27
28
29
# File 'app/models/kirgudu_base/dynamic_pages/list_cell.rb', line 21

def to_external_hash(options = {})
	options ||= {}
	options.merge!({
		               label: self.label,
		               format: self.format,
	                   properties: self.properties
	               })
	super(options)
end