Module: Card::Set::Abstract::List::OtherViews::Format
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb
Instance Method Summary collapse
-
#default_limit ⇒ Object
-
#nest_item_array ⇒ Object
-
#pointer_items(args = {}) ⇒ Object
-
#view: core ⇒ Object
Instance Method Details
#default_limit ⇒ Object
11 12 13 |
# File 'platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb', line 11 def default_limit 20 end |
#nest_item_array ⇒ Object
15 16 17 18 19 |
# File 'platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb', line 15 def nest_item_array card.item_cards.map do |item| nest_item item end end |
#pointer_items(args = {}) ⇒ Object
25 26 27 28 |
# File 'platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb', line 25 def pointer_items args={} page_args = args.extract! :limit, :offset listing card.item_cards(page_args), args end |
#view: core ⇒ Object
21 22 23 |
# File 'platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb', line 21 view :core do pointer_items.join ", " end |