Cherry.Portfolio.Education (cherry v0.6.1)

Copy Markdown View Source

A qualification: degree, certification, or formal course.

Summary

Functions

Materialises the struct from a validated portfolio document.

Newest-first ordering by completion, then start.

Types

t()

@type t() :: %Cherry.Portfolio.Education{
  cv: Cherry.Portfolio.Curation.t() | nil,
  ended: Date.t() | nil,
  highlights: [String.t()],
  html: String.t() | nil,
  institution: String.t(),
  slug: String.t(),
  started: Date.t() | nil,
  tags: [String.t()],
  title: String.t()
}

Functions

from_document(document)

@spec from_document(Cherry.Content.Document.t()) :: t()

Materialises the struct from a validated portfolio document.

sort_key(education)

@spec sort_key(t()) :: {:calendar.date(), :calendar.date()}

Newest-first ordering by completion, then start.