class Deckstrings::Card

A Hearthstone card with basic metadata. @see Deck.decode

Attributes

cost[R]

@return [Integer] Mana cost of the card.

id[R]

@return [Integer] Hearthstone DBF ID of the card. @see hearthstonejson.com/ HearthstoneJSON

name[R]

@return [String] Name of the card.

Public Class Methods

new(id, name, cost) click to toggle source
# File lib/deckstrings/deckstrings.rb, line 263
def initialize(id, name, cost)
  @id = id
  @name = name
  @cost = cost
end