class AcademicCard
An AcademicCard
provides a topical way to filter and search for an academic program.
Public Instance Methods
as_indexed_json(*)
click to toggle source
# File lib/buweb/academic_card.rb, line 50 def as_indexed_json(*) as_json( only: %i[title description], include: { school: { only: %i[title slug] }, academic_programs: { only: %i[page_url level], methods: :title, include: { academic_program_formats: { only: %i[title slug] }, academic_program_types: { only: %i[title slug] }, academic_subjects: { only: %i[title slug] } } } } ) end