ExShla v0.1.4 ExShla.Resource.Location View Source

Rick and Morty location data from an API response

Attributes

id The id of the location.

name The name of the location.

type The type of the location.

dimension The dimension in which the location is located.

residents List of character who have been last seen in the location.

url Link to the location’s own endpoint.

created Time at which the location 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.Location{
  created: binary(),
  dimension: binary(),
  id: integer(),
  name: binary(),
  residents: [binary()],
  type: binary(),
  url: binary()
}

Link to this section Functions

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