client/stat

Functions

pub fn fetch_by_id(id: Int) -> Result(Stat, Error)

Fetches a pokemon stat by the stat ID.

Example

let result = stat.fetch_by_id(1)
pub fn fetch_by_name(name: String) -> Result(Stat, Error)

Fetches a pokemon stat by the stat name.

Example

let result = stat.fetch_by_name("hp")
Search Document