Module: Card::Set::Abstract::Pointer::OtherViews::Format
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- tmpsets/set/mod008-pointer/abstract/02_pointer/other_views.rb
Instance Method Summary collapse
- #default_limit ⇒ Object
- #item_links(args = {}) ⇒ Object
- #nest_item_array ⇒ Object
- #pointer_items(args = {}) ⇒ Object
Instance Method Details
#default_limit ⇒ Object
11 12 13 |
# File 'tmpsets/set/mod008-pointer/abstract/02_pointer/other_views.rb', line 11 def default_limit 20 end |
#item_links(args = {}) ⇒ Object
15 16 17 18 19 |
# File 'tmpsets/set/mod008-pointer/abstract/02_pointer/other_views.rb', line 15 def item_links args={} card.item_cards(args).map do |item_card| subformat(item_card).render_link end end |
#nest_item_array ⇒ Object
21 22 23 24 25 |
# File 'tmpsets/set/mod008-pointer/abstract/02_pointer/other_views.rb', line 21 def nest_item_array card.item_cards.map do |item| nest_item item end end |
#pointer_items(args = {}) ⇒ Object
31 32 33 34 |
# File 'tmpsets/set/mod008-pointer/abstract/02_pointer/other_views.rb', line 31 def pointer_items args={} page_args = args.extract! :limit, :offset listing card.item_cards(page_args), args end |