Class: KirguduBase::DynamicPages::MenuSection
- Inherits:
-
PageElement
- Object
- Element
- PageElement
- KirguduBase::DynamicPages::MenuSection
- Defined in:
- app/models/kirgudu_base/dynamic_pages/menu_section.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
Returns the value of attribute items.
-
#label ⇒ Object
Returns the value of attribute label.
Attributes inherited from PageElement
#css_class, #enabled, #html_options, #id, #name, #use_i18n, #visible
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ MenuSection
constructor
A new instance of MenuSection.
- #to_external_hash(options = {}) ⇒ Object
Methods inherited from PageElement
Constructor Details
#initialize(options = {}) ⇒ MenuSection
Returns a new instance of MenuSection.
10 11 12 13 14 15 16 |
# File 'app/models/kirgudu_base/dynamic_pages/menu_section.rb', line 10 def initialize( = {}) self.label = nil self.items = nil super() end |
Instance Attribute Details
#items ⇒ Object
Returns the value of attribute items.
20 21 22 |
# File 'app/models/kirgudu_base/dynamic_pages/menu_section.rb', line 20 def items @items end |
#label ⇒ Object
Returns the value of attribute label.
19 20 21 |
# File 'app/models/kirgudu_base/dynamic_pages/menu_section.rb', line 19 def label @label end |
Instance Method Details
#to_external_hash(options = {}) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'app/models/kirgudu_base/dynamic_pages/menu_section.rb', line 23 def to_external_hash( = {}) ||= {} .merge!({ #url: self.url, #data_format: self.data_format, #http_method: self.http_method, #label_property: self.label_property, #value_property: self.value_property }) super() end |