BorsNG.GitHub.User (Bors-NG v0.1.0) View Source

The GitHub structure of a user account. This is different from FullUser since this has many fewer fields.

Link to this section Summary

Functions

Convert from Poison-decoded JSON to a User struct.

Convert from Poison-decoded JSON to a User struct.

Link to this section Types

Specs

t() :: %BorsNG.GitHub.User{
  avatar_url: bitstring(),
  id: integer(),
  login: bitstring()
}

Specs

tjson() :: map()

Link to this section Functions

Specs

from_json(tjson()) :: {:ok, t()} | :err

Convert from Poison-decoded JSON to a User struct.

Specs

from_json!(tjson()) :: t()

Convert from Poison-decoded JSON to a User struct.