Class: KirguduBase::DynamicPages::List

Inherits:
PageElement show all
Defined in:
app/models/kirgudu_base/dynamic_pages/list.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, #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

#fix_parent_entry

Methods included from Models::MergeableElements::InstanceMethods

#merge

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

end

Instance Attribute Details

#cellsObject

Returns the value of attribute cells.



35
36
37
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 35

def cells
  @cells
end

#filtersObject

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_methodObject

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_ajaxObject

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

#modelObject

Returns the value of attribute model.



37
38
39
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 37

def model
  @model
end

#parentObject

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_pageObject

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

#propertiesObject

Returns the value of attribute properties.



34
35
36
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 34

def properties
  @properties
end

#relationObject

Returns the value of attribute relation.



39
40
41
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 39

def relation
  @relation
end

#urlObject

Returns the value of attribute url.



30
31
32
# File 'app/models/kirgudu_base/dynamic_pages/list.rb', line 30

def url
  @url
end