Class: KirguduBase::DynamicPages::MenuSection

Inherits:
PageElement
  • Object
show all
Defined in:
app/models/kirgudu_base/dynamic_pages/menu_section.rb

Instance Attribute Summary collapse

Attributes inherited from PageElement

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

Instance Method Summary collapse

Methods inherited from PageElement

#i18n_data_as_string

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(options = {})

  self.label = nil
  self.items = nil

  super(options)
end

Instance Attribute Details

#itemsObject

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

#labelObject

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(options = {})
  options ||= {}
  options.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(options)
end