class Scryfall::Api
- Scryfall::Api
- Reference
- Object
Extended Modules
Defined in:
scryfall/api.crConstant Summary
-
SF_HEADERS =
HTTP::Headers {"Content-Type" => "application/json; charset=utf-8"}
-
SF_HOST =
"api.scryfall.com"
-
SF_SCHEME =
"https"
-
SF_SEARCH_PATH =
"/cards/search"
Class Method Summary
- .bulk_data
-
.catalog(catalog : String) : Scryfall::Catalog
https://scryfall.com/docs/api/catalogs
- .configure(options : Options = Options.new, &)
- .configure(options : Options = Options.new)
-
.fetch_card(id : UUID) : Scryfall::Card
Look up card in scryfall by id
-
.fetch_card(id : String) : Scryfall::Card
Look up card in scryfall by id
-
.fetch_card_by_mv(id : Int32) : Scryfall::Card
Look up card in scryfall by multiverse id
-
.fetch_card_by_set(set_code : String, set_num : String | Int32) : Scryfall::Card
Look up card in scryfall by set
- .logger
-
.make_request(path : String, params : String | Nil = nil)
Make a request with a string URI
-
.make_request(uri : URI)
Make a request with a URI object
-
.make_request_uri(path : String, params : String | Nil = nil) : URI
URI helper function
-
.query(q : String) : CardList
Look up cards on query
-
.search_card_by_name(name : String, set_code : String | Nil = nil) : CardList
Look up card in scryfall by name
-
.sets : SetList
Fetch set list
Instance Method Summary
Class Method Detail
def self.fetch_card_by_set(set_code : String, set_num : String | Int32) : Scryfall::Card
#
Look up card in scryfall by set
def self.make_request(path : String, params : String | Nil = nil)
#
Make a request with a string URI
URI helper function
Look up card in scryfall by name