MTG SDK Elixir v0.1.4 Mtg.Api.Base behaviour View Source
Module defining a base module to call the API and parse the response
Link to this section Summary
Link to this section Types
Link to this type
and_filter()
View Source
and_filter()
View Source
and_filter() :: {filter_key(), :and, [binary()]}
and_filter() :: {filter_key(), :and, [binary()]}
Link to this type
filter_key() View Source
Link to this type
normal_filter()
View Source
normal_filter()
View Source
normal_filter() :: {filter_key(), any()}
normal_filter() :: {filter_key(), any()}
Link to this type
or_filter()
View Source
or_filter()
View Source
or_filter() :: {filter_key(), :or, [binary()]}
or_filter() :: {filter_key(), :or, [binary()]}
Link to this section Callbacks
Link to this callback
call(arg1)
View Source
call(arg1)
View Source
call([normal_filter() | or_filter() | and_filter()] | number()) ::
{:ok, Mtg.Response.Collection.t() | Mtg.Card.t() | Mtg.Set.t()}
| {:error, Mtg.Error.t()}
call([normal_filter() | or_filter() | and_filter()] | number()) :: {:ok, Mtg.Response.Collection.t() | Mtg.Card.t() | Mtg.Set.t()} | {:error, Mtg.Error.t()}