Class: UiBibz::Ui::Ux::Store
- Inherits:
-
Object
- Object
- UiBibz::Ui::Ux::Store
- Defined in:
- lib/ui_bibz/ui/ux/table/components/store.rb
Instance Attribute Summary (collapse)
-
- (Object) records
Returns the value of attribute records.
Instance Method Summary (collapse)
- - (Object) action
- - (Object) columns
- - (Object) controller
- - (Object) current_page
- - (Object) direction
- - (Object) id
-
- (Store) initialize(store)
constructor
Store Use WillPaginate store methods.
- - (Object) limit_value
- - (Object) model
- - (Object) param_id
- - (Object) per_page
- - (Object) search
- - (Object) searchable_attributes
- - (Object) sort
- - (Object) total_entries
- - (Object) total_pages
Constructor Details
- (Store) initialize(store)
Store Use WillPaginate store methods
9 10 11 12 13 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 9 def initialize store @records = store.records @store = store @model = store.model end |
Instance Attribute Details
- (Object) records
Returns the value of attribute records
6 7 8 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 6 def records @records end |
Instance Method Details
- (Object) action
67 68 69 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 67 def action @store.action end |
- (Object) columns
51 52 53 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 51 def columns @columns ||= Columns.new model.new.attributes.keys.map{ |record| Column.new(record, { name: record.humanize }) } end |
- (Object) controller
63 64 65 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 63 def controller @store.controller end |
- (Object) current_page
43 44 45 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 43 def current_page @records.current_page end |
- (Object) direction
35 36 37 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 35 def direction @store.direction end |
- (Object) id
27 28 29 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 27 def id @store.id end |
- (Object) limit_value
47 48 49 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 47 def limit_value @records.limit_value end |
- (Object) model
55 56 57 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 55 def model @model end |
- (Object) param_id
71 72 73 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 71 def param_id @store.param_id end |
- (Object) per_page
19 20 21 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 19 def per_page @records.per_page end |
- (Object) search
59 60 61 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 59 def search @store.search end |
- (Object) searchable_attributes
39 40 41 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 39 def searchable_attributes @store.searchable_attributes end |
- (Object) sort
31 32 33 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 31 def sort @store.sort end |
- (Object) total_entries
23 24 25 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 23 def total_entries @records.total_entries end |
- (Object) total_pages
15 16 17 |
# File 'lib/ui_bibz/ui/ux/table/components/store.rb', line 15 def total_pages @records.total_pages end |