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_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_user_id(arg1, arg2)
View Source
get_user_id(Plug.Conn.t(), CodeCorps.User.t() | struct() | map()) :: String.t()