Class: KirguduBase::DynamicPages::ListCell
- Inherits:
-
PageElement
- Object
- Element
- PageElement
- KirguduBase::DynamicPages::ListCell
- Defined in:
- app/models/kirgudu_base/dynamic_pages/list_cell.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#label ⇒ Object
Returns the value of attribute label.
-
#properties ⇒ Object
Returns the value of attribute properties.
Attributes inherited from PageElement
#enabled, #html_options, #id, #name, #use_i18n, #visible
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ListCell
constructor
A new instance of ListCell.
- #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 = {}) ⇒ 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( = {}) self.label = nil self.properties = nil super() end |
Instance Attribute Details
#format ⇒ Object
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 |
#label ⇒ Object
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 |
#properties ⇒ Object
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( = {}) ||= {} .merge!({ label: self.label, format: self.format, properties: self.properties }) super() end |