ExShla v0.1.4 ExShla.Resource.Character View Source

Rick and Morty character data from an API response

Attributes

id The id of the character.

name The name of the character.

status The status of the character: Alive, Dead, unknown.

species The species of the character.

type The type or subspecies of the character.

gender The gender of the character: Female, Male, Genderless, unknown.

origin Name and link to the character’s origin location.

location Name and link to the character’s last known location endpoint.

image Link to the character’s image.

episode List of episodes in which this character appeared.

url Link to the character’s own URL endpoint.

created Time at which the character was created in the database.

Link to this section Summary

Link to this section Types

Link to this type data() View Source
data() :: %{meta: ExShla.Meta.t(), data: [t()]}
Link to this type error() View Source
error() :: {:error, reason()}
Link to this type reason() View Source
reason() :: atom() | binary()
Link to this type success() View Source
success() :: {:ok, struct()} | {:ok, data()}
Link to this type t() View Source
t() :: %ExShla.Resource.Character{
  created: binary(),
  episode: [binary()],
  gender: binary(),
  id: integer(),
  image: binary(),
  location: map(),
  name: binary(),
  origin: map(),
  species: binary(),
  status: binary(),
  type: binary(),
  url: binary()
}

Link to this section Functions

Link to this function all(query \\ []) View Source
all(query :: keyword()) :: result()