module

Scryfall::Api

Inherits Toshi::Api

Constants

SF_SEARCH_PATH = "/cards/search"

Class methods

bulk_data(params = nil, headers = nil)
catalog(catalog, params = nil, headers = nil)

https://scryfall.com/docs/api/catalogs

fetch_card(id : UUID) : Scryfall::Card

Look up card in scryfall by id

Source
fetch_card(id, params = nil, headers = nil)

Look up card in scryfall by id

fetch_card_by_mv(id, params = nil, headers = nil)

Look up card in scryfall by multiverse id

fetch_card_by_set(set, num, params = nil, headers = nil)

Look up card in scryfall by set

get_ability_words(params = nil, headers = nil)
get_artifact_types(params = nil, headers = nil)
get_artist_names(params = nil, headers = nil)
get_card_names(params = nil, headers = nil)
get_creature_types(params = nil, headers = nil)
get_enchantment_types(params = nil, headers = nil)
get_keyword_abilities(params = nil, headers = nil)
get_keyword_actions(params = nil, headers = nil)
get_land_types(params = nil, headers = nil)
get_loyalties(params = nil, headers = nil)
get_planeswalker_types(params = nil, headers = nil)
get_powers(params = nil, headers = nil)
get_spell_types(params = nil, headers = nil)
get_toughnesses(params = nil, headers = nil)
get_watermarks(params = nil, headers = nil)
get_word_bank(params = nil, headers = nil)
logger
Source
options
pool
query(q : String, params = Hash(String, String).new) : CardList

Look up cards on query

Source
search_card_by_name(name : String, set_code : String | Nil = nil) : CardList

Look up card in scryfall by name

Source
sets(params = nil, headers = nil)

Instance methods

bulk_data
Source
catalog

https://scryfall.com/docs/api/catalogs

Source
fetch_card

Look up card in scryfall by id

Source
fetch_card_by_mv

Look up card in scryfall by multiverse id

Source
fetch_card_by_set

Look up card in scryfall by set

Source
get_ability_words
get_artifact_types
get_artist_names
get_card_names
get_creature_types
get_enchantment_types
get_keyword_abilities
get_keyword_actions
get_land_types
get_loyalties
get_planeswalker_types
get_powers
get_spell_types
get_toughnesses
get_watermarks
get_word_bank
logger
Source
options
Source
pool
Source
sets
Source

Macros

define_catalogs
Source

Nested types