class Gamemaker::CardGame::Card
Public Class Methods
all()
click to toggle source
This method should return an array of all possible Cards
# File lib/gamemaker/card_game/card.rb, line 5 def self.all raise NotImplementedError end
from_json(json)
click to toggle source
Deserialize the (parsed) json
data into a Card
object
# File lib/gamemaker/card_game/card.rb, line 10 def self.from_json(json) raise NotImplementedError end
new()
click to toggle source
# File lib/gamemaker/card_game/card.rb, line 14 def initialize if self.class == Card raise NotImplementedError, "Card is an abstract class" end end
Public Instance Methods
==(other)
click to toggle source
as_json(*)
click to toggle source
Retrun a JSON-serializable representation of this Card
# File lib/gamemaker/card_game/card.rb, line 26 def as_json(*) raise NotImplementedError end