Module: Card::Set::Abstract::List::OtherViews::JsonFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb
Overview
JSON views
Instance Method Summary collapse
Instance Method Details
#item_cards ⇒ Object
58 59 60 |
# File 'platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb', line 58 def item_cards card.item_cards end |
#max_depth ⇒ Object
62 63 64 |
# File 'platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb', line 62 def max_depth params[:max_depth] || 1 end |
#view: content ⇒ Object
54 55 56 |
# File 'platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb', line 54 view :content do card.item_names end |
#view: links ⇒ Object
66 67 68 |
# File 'platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb', line 66 view :links do [] end |