Module: Card::Set::Abstract::Pointer::OtherViews::Format

Extended by:
Card::Set::AbstractFormat
Defined in:
card/tmpsets/set/mod009-card-mod-list/abstract/01_pointer/other_views.rb,
card/tmpsets/set/mod008-card-mod-list/abstract/01_pointer/other_views.rb

Instance Method Summary collapse

Instance Method Details

#default_limitObject



11
12
13
# File 'card/tmpsets/set/mod009-card-mod-list/abstract/01_pointer/other_views.rb', line 11

def default_limit
  20
end


15
16
17
18
19
# File 'card/tmpsets/set/mod009-card-mod-list/abstract/01_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_arrayObject



21
22
23
24
25
# File 'card/tmpsets/set/mod009-card-mod-list/abstract/01_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 'card/tmpsets/set/mod009-card-mod-list/abstract/01_pointer/other_views.rb', line 31

def pointer_items args={}
  page_args = args.extract! :limit, :offset
  listing card.item_cards(page_args), args
end

#view: coreObject



27
28
29
# File 'card/tmpsets/set/mod009-card-mod-list/abstract/01_pointer/other_views.rb', line 27

view :core do
  pointer_items.join ", "
end