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



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_depthObject



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: contentObject



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


66
67
68
# File 'platypus/tmp/set/gem-defaults/mod005-list/abstract/01_list/other_views.rb', line 66

view :links do
  []
end