Module: Decidim::Core::CategoriesContainerInterface

Includes:
Api::Types::BaseInterface
Defined in:
decidim-core/lib/decidim/api/interfaces/categories_container_interface.rb

Overview

This interface represents a resource that contains categories.

Instance Method Summary collapse

Instance Method Details

#categories(filter: {}) ⇒ Object


14
15
16
# File 'decidim-core/lib/decidim/api/interfaces/categories_container_interface.rb', line 14

def categories(filter: {})
  CategoryList.new.call(object, { filter: filter }, context)
end