Rulings Api
class RulingsApi(config: ScryfallConfig = ScryfallConfig(), engine: HttpClientEngine? = null, logger: (String) -> Unit? = null) : ScryfallBaseApi
Rulings represent Oracle rulings, Wizards of the Coast set release notes, or Scryfall notes for a particular card. https://scryfall.com/docs/api/rulings
Constructors
Link copied to clipboard
constructor(config: ScryfallConfig = ScryfallConfig(), engine: HttpClientEngine? = null, logger: (String) -> Unit? = null)
Functions
Link copied to clipboard
suspend fun byCollectorId(code: String, number: String, format: String? = "json", pretty: Boolean? = false): ScryfallList<Ruling>
Returns a List of rulings for the card with the given set code and collector number. https://scryfall.com/docs/api/rulings/collector
Link copied to clipboard
Link copied to clipboard
suspend fun byMultiverseId(id: Int, format: String? = "json", pretty: Boolean? = false): ScryfallList<Ruling>
Returns a List of rulings for a card with the given Multiverse ID. If the card has multiple multiverse IDs, this method can find either of them. https://scryfall.com/docs/api/rulings/multiverse