CPub.User (CPub v0.3.0) View Source

A CPub user.

Link to this section Summary

Functions

Get a single user by username.

Get a single user by id.

Get the user profile

Link to this section Types

Specs

t() :: %CPub.User{
  __meta__: term(),
  followers: RDF.IRI.t(),
  following: RDF.IRI.t(),
  id: String.t(),
  inbox: RDF.IRI.t(),
  outbox: RDF.IRI.t(),
  profile: RDF.FragmentGraph.t(),
  username: String.t()
}

Link to this section Functions

Specs

create(String.t()) :: {:ok, t()} | {:error, any()}

Specs

create!(String.t()) :: t()

Specs

get(String.t()) :: {:ok, t()} | {:error, any()}

Get a single user by username.

Specs

get_by_id(String.t()) :: {:ok, t()} | {:error, any()}

Get a single user by id.

Specs

get_profile(t()) :: RDF.FragmentGraph.t()

Get the user profile