@beastmaster23/pokemon-tcg-yajs-sdk
Version:
A modern JavaScript SDK for interacting with the Pokemon Trading Card Game API, providing an intuitive interface for accessing Pokemon TCG card data, set information, and market prices.
19 lines (17 loc) • 600 B
JavaScript
/**
* AncientTrait class representing an ancient trait on a Pokemon card
* Ancient traits are special abilities that were introduced in the Ancient Origins set
*/
class AncientTrait {
/**
* Creates a new AncientTrait instance
* @param {Object} data - The ancient trait data from the API
* @param {string} data.name - The name of the ancient trait
* @param {string} data.text - The description of the ancient trait's effect
*/
constructor(data) {
this.name = data.name;
this.text = data.text;
}
}
export default AncientTrait;