plotka v0.1.0 Plotka.Cards

list/0 - Retrieve list all cards show/1 - Retrieve a card.

Summary

Functions

Retrieve list of all gwent cards

Retrieve details of a card by card name

Functions

list()

Retrieve list of all gwent cards

Example:

iex> Plotka.Cards.list

[%{"href" => "https://api.gwentapi.com/v0/cards/alchemist",
  "name" => "Alchemist"},
%{"href" => "https://api.gwentapi.com/v0/cards/ancient-foglet",
  "name" => "Ancient Foglet"},
...}]
show(name)

Retrieve details of a card by card name.

Arguments:

name - Card name

Example:

iex> Plotka.Cards.show(“alchemist”)

%{"artwork" => %{"href" => "https://api.gwentapi.com/v0/cards/alchemist/artworks"},
  "faction" => %{"href" => "https://api.gwentapi.com/v0/factions/neutral",
    "name" => "Neutral"},
  "href" => "https://api.gwentapi.com/v0/cards/alchemist", "id" => "alchemist",
  "name" => "Alchemist",
  "rarity" => %{"href" => "https://api.gwentapi.com/v0/rarities/common",
    "name" => "Common"}, "rows" => ["Melee", "Ranged", "Siege"],
  "subtypes" => [%{"href" => "https://api.gwentapi.com/v0/types/loyal",
    "name" => "Loyal"}],
  "text" => "Inspire: Fresh Recruits Passive: 2x Strength of all Units without any Ability on row, unless another card with Inspire: Fresh Recruits is already on row.",
  "type" => %{"href" => "https://api.gwentapi.com/v0/types/troop",
    "name" => "Troop"}}