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_cardsObject



54
55
56
# File 'platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb', line 54

def item_cards
  card.item_cards
end

#max_depthObject



58
59
60
# File 'platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb', line 58

def max_depth
  params[:max_depth] || 1
end

#view: contentObject



50
51
52
# File 'platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb', line 50

view :content do
  card.item_names
end


62
63
64
# File 'platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb', line 62

view :links do
  []
end