fluminus v1.4.3 Fluminus.API.Module.Lesson View Source
Provides an abstraction over a lesson plan in LumiNUS, and operations possible on them using LumiNUS API.
Struct fields:
:id
- id of the lesson plan:name
- name of the lesson plan:week
- which week the lesson plan is for:module_id
- the module id to which the lesson plan is from.
Link to this section Summary
Functions
Get files that are contained inside this lesson plan.
Creates Elixir.Fluminus.API.Module.Lesson
struct from LumiNUS API response.
Link to this section Types
Link to this section Functions
Link to this function
files(lesson, auth)
View Sourcefiles(Fluminus.API.Module.Lesson.t(), Fluminus.Authorization.t()) :: {:ok, [Fluminus.API.File.t()]} | {:error, any()}
Get files that are contained inside this lesson plan.
Link to this function
from_api(map, module)
View Sourcefrom_api(api_response :: map(), Fluminus.API.Module.t()) :: Fluminus.API.Module.Lesson.t()
Creates Elixir.Fluminus.API.Module.Lesson
struct from LumiNUS API response.