Edited Card.md to be more consistent and readable

This commit is contained in:
Nanda Scott 2018-02-05 21:22:16 -05:00
parent 982276404e
commit faceaeccf4
1 changed files with 52 additions and 102 deletions

View File

@ -7,105 +7,55 @@ Documentation for a card object. These docs will likely not be as detailed as th
All attributes are listed assuming the following All attributes are listed assuming the following
`card = scrython.cards.<Class>()` is the current usage. `card = scrython.cards.<Class>()` is the current usage.
## `card.object()` |Name|Data type returned|Description|
str | Returns the type of object it is. (card, error, etc) |:---:|:---:|:---:|
## `card.id()` |`card.object()`|String | Returns the type of object it is. (card, error, etc)
str | The scryfall id of the card. |`card.id()`|String | The scryfall id of the card.
## `card.multiverse_ids()` |`card.multiverse_ids()`|List | The associated multiverse ids of the card.
arr | The associated multiverse ids of the card. |`card.mtgo_id()`|Integer | The Magic Online id of the card.
## `card.mtgo_id()` |`card.mtgo_foil_id()`|Integer | The Magic Online foil id of the card.
int | The Magic Online id of the card. |`card.name()`|String | The full name of the card. Cards with multiple faces are named with '//' as a seperator.
## `card.mtgo_foil_id()` |`card.uri()`|String | The Scryfall API uri for the card.
int | The Magic Online foil id of the card. |`card.scryfall_uri()`|String | The full Scryfall page of the card.
## `card.name()` |`card.layout()`|String | The image layout of the card. (normal, transform, etc)
str | The full name of the card. Cards with multiple faces are named with '//' as a seperator. |`card.highres_image()`|Bool | Returns True if the card has a high res image.
## `card.uri()` |`card.image_uris()`|Dict | All image uris of the card in various qualities.
str | The Scryfall API uri for the card. |`card.cmc()`|float | A float of the converted mana cost of the card.
## `card.scryfall_uri()` |`card.type_line()`|String | The full type line of the card.
str | The full Scryfall page of the card. |`card.oracle_text()`|String | The official oracle text of a card.
## `card.layout()` |`card.mana_cost()`|String | The full mana cost using shorthanded mana symbols.
str | The image layout of the card. (normal, transform, etc) |`card.colors()`|List | An array of strings with all colors found in the mana cost.
## `card.highres_image()` |`card.color_identity()`|List | An array of strings with all colors found on the card itself.
bool | Returns True if the card has a high res image. |`card.legalities()`|Dict | A dictionary of all formats and their legality.
## `card.image_uris()` |`card.reserved()`|Bool | Returns True if the card is on the reserved list.
dict | All image uris of the card in various qualities. |`card.reprint()`|Bool | Returns True if the card has been reprinted before.
## `card.cmc()` |`card.set()`|String | The 3 letter code for the set of the card.
float | A float of the converted mana cost of the card. |`card.set_name()`|String | The full name for the set of the card.
## `card.type_line()` |`card.set_uri()`|String | The API uri for the full set list of the card.
str | The full type line of the card. |`card.set_search_uri()`|String | Same output as set_uri.
## `card.oracle_text()` |`card.scryfall_set_uri()`|String | The full link to the set on Scryfall.
str | The official oracle text of a card. |`card.rulings_uri()`|String | The API uri for the rulings of the card.
## `card.mana_cost()` |`card.prints_search_uri()`|String | A link to where you can begin paginating all re/prints for this card on Scryfalls API.
str | The full mana cost using shorthanded mana symbols. |`card.collector_number()`|String | The collector number of the card.
## `card.colors()` |`card.digital()`|Bool | Returns True if the card is the digital version.
arr | An array of strings with all colors found in the mana cost. |`card.rarity()`|String | The rarity of the card.
## `card.color_identity()` |`card.illuStringation_id()`|String | The related id of the card art.
arr | An array of strings with all colors found on the card itself. |`card.artist()`|String | The artist of the card.
## `card.legalities()` |`card.frame()`|String | The year of the card frame.
dict | A dictionary of all formats and their legality. |`card.full_art()`|Bool | Returns True if the card is considered full art.
## `card.reserved()` |`card.border_color()`|String | The color of the card border.
bool | Returns True if the card is on the reserved list. |`card.timeshifted()`|Bool | Returns True if the card is timeshifted.
## `card.reprint()` |`card.colorshifted()`|Bool | Returns True if the card is colorshifted.
bool | Returns True if the card has been reprinted before. |`card.futureshifted()`|Bool | Returns True if the card is futureshifted.
## `card.set()` |`card.edhrec_rank()`|Integer | The rank of the card on edhrec.com
str | The 3 letter code for the set of the card. |`card.currency("<mode>")`|String | Takes an argument for a currency, then returns a string of that value. (`currency("usd")>>"1.35"`). Current modes are `usd`, `eur`, and `tix`.
## `card.set_name()` |`card.related_uris()`|Dict | A dictionary of related websites for this card.
str | The full name for the set of the card. |`card.purchase_uris()`|Dict | A dictionary of links to purchase the card.
## `card.set_uri()` |`card.life_modifier()`|String | This is the cards life modifier value, assuming it's a Vanguard card.
str | The API uri for the full set list of the card. |`card.hand_modifier()`|String | This cards hand modifier value, assuming it's a Vanguard card.
## `card.set_search_uri()` |`card.color_indicator()`|List | An array of all colors found in this card's color indicator.
str | Same output as set_uri. |`card.all_parts()`|List | This this card is closely related to other cards, this property will be an array with it.
## `card.scryfall_set_uri()` |`card.card_faces()`|List | If it exists, all parts found on a card's face will be found as an object from this array.
str | The full link to the set on Scryfall. |`card.watermark()`|String | The associated watermark of the card, if any.
## `card.rulings_uri()` |`card.story_spotlight_number()`|Integer | This card's story spotlight number, if any.
str | The API uri for the rulings of the card. |`card.story_spotlight_uri()`|String | The URI for the card's story article, if any.
## `card.prints_search_uri()`
str | A link to where you can begin paginating all re/prints for this card on Scryfalls API.
## `card.collector_number()`
str | The collector number of the card.
## `card.digital()`
bool | Returns True if the card is the digital version.
## `card.rarity()`
str | The rarity of the card.
## `card.illustration_id()`
str | The related id of the card art.
## `card.artist()`
str | The artist of the card.
## `card.frame()`
str | The year of the card frame.
## `card.full_art()`
bool | Returns True if the card is considered full art.
## `card.border_color()`
str | The color of the card border.
## `card.timeshifted()`
bool | Returns True if the card is timeshifted.
## `card.colorshifted()`
bool | Returns True if the card is colorshifted.
## `card.futureshifted()`
bool | Returns True if the card is futureshifted.
## `card.edhrec_rank()`
int | The rank of the card on edhrec.com
## `card.currency("<mode>")`
str | Takes an argument for a currency, then returns a string of that value. (`currency("usd")>>"1.35"`). Current modes are `usd`, `eur`, and `tix`.
## `card.related_uris()`
dict | A dictionary of related websites for this card.
## `card.purchase_uris()`
dict | A dictionary of links to purchase the card.
## `card.life_modifier()`
str | This is the cards life modifier value, assuming it's a Vanguard card.
## `card.hand_modifier()`
str | This cards hand modifier value, assuming it's a Vanguard card.
## `card.color_indicator()`
arr | An array of all colors found in this card's color indicator.
## `card.all_parts()`
arr | This this card is closely related to other cards, this property will be an array with it.
## `card.card_faces()`
arr | If it exists, all parts found on a card's face will be found as an object from this array.
## `card.watermark()`
str | The associated watermark of the card, if any.
## `card.story_spotlight_number()`
int | This card's story spotlight number, if any.
## `card.story_spotlight_uri()`
str | The URI for the card's story article, if any.