Class: KirguduBase::DynamicPages::List
- Inherits:
-
PageElement
- Object
- Element
- PageElement
- KirguduBase::DynamicPages::List
- Defined in:
- app/models/kirgudu_base/dynamic_pages/list.rb
Instance Attribute Summary collapse
-
#cells ⇒ Object
Returns the value of attribute cells.
-
#filters ⇒ Object
Returns the value of attribute filters.
-
#http_method ⇒ Object
Returns the value of attribute http_method.
-
#is_ajax ⇒ Object
Returns the value of attribute is_ajax.
-
#model ⇒ Object
Returns the value of attribute model.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#per_page ⇒ Object
Returns the value of attribute per_page.
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#url ⇒ Object
Returns the value of attribute url.
Attributes inherited from PageElement
#enabled, #html_options, #id, #name, #use_i18n, #visible
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ List
constructor
A new instance of List.
Methods inherited from PageElement
#i18n_data_as_string, #to_external_hash
Methods inherited from Element
#as_json, #fix_parent_entry, #kontroller_klass, #to_external_hash
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 = {}) ⇒ List
Returns a new instance of List.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 14 def initialize( = {}) self.url = nil self.http_method = nil self.is_ajax = :false self.per_page = 30 self.properties = nil self.filters = nil self.cells = nil self.model = nil self.parent = nil self.relation = nil super() end |
Instance Attribute Details
#cells ⇒ Object
Returns the value of attribute cells.
35 36 37 |
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 35 def cells @cells end |
#filters ⇒ Object
Returns the value of attribute filters.
36 37 38 |
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 36 def filters @filters end |
#http_method ⇒ Object
Returns the value of attribute http_method.
31 32 33 |
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 31 def http_method @http_method end |
#is_ajax ⇒ Object
Returns the value of attribute is_ajax.
32 33 34 |
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 32 def is_ajax @is_ajax end |
#model ⇒ Object
Returns the value of attribute model.
37 38 39 |
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 37 def model @model end |
#parent ⇒ Object
Returns the value of attribute parent.
38 39 40 |
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 38 def parent @parent end |
#per_page ⇒ Object
Returns the value of attribute per_page.
33 34 35 |
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 33 def per_page @per_page end |
#properties ⇒ Object
Returns the value of attribute properties.
34 35 36 |
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 34 def properties @properties end |
#relation ⇒ Object
Returns the value of attribute relation.
39 40 41 |
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 39 def relation @relation end |
#url ⇒ Object
Returns the value of attribute url.
30 31 32 |
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 30 def url @url end |