class CwCardUtils::ScryfallCard
Represents a card with Scryfall data
def cmc
def cmc @data["cmc"] end
def color_identity
def color_identity @data["color_identity"] end
def initialize(name, data_source = nil)
def initialize(name, data_source = nil) @name = name @data = (data_source || CwCardUtils.card_data_source).find_card(@name) || {} end
def keywords
def keywords @data["keywords"] end
def oracle_text
def oracle_text @data["oracle_text"] end
def power
def power @data["power"] end
def toughness
def toughness @data["toughness"] end
def type
def type @data["type_line"] end