code_corps v0.0.1 CodeCorps.Analytics.SegmentDataExtractor View Source

Extract data for use in Segment tracking

Link to this section Summary

Functions

Tries to extract project id from given resource. Returns nil if project id can’t be extracted

Link to this section Functions

Link to this function get_action(arg1) View Source
get_action(Plug.Conn.t()) :: atom()
Link to this function get_project_id(arg1) View Source
get_project_id(CodeCorps.ProjectUser.t()) :: String.t() | nil

Tries to extract project id from given resource. Returns nil if project id can’t be extracted.

Link to this function get_resource(arg1) View Source
get_resource(Plug.Conn.t()) :: struct()
Link to this function get_user_id(arg1, arg2) View Source
get_user_id(Plug.Conn.t(), CodeCorps.User.t() | struct() | map()) :: String.t()