tallgrass/client/habitat

Functions

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

Fetches a pokemon habitat by the habitat ID.

Example

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

Fetches a pokemon habitat by the habitat name.

Example

let result = habitat.fetch_by_name("cave")
Search Document