The Rails based web API for an implementation of Doomtown Reloaded.
This api following the specifications of JSON API
- cost (integer)
- name (string)
- text (string)
- belongs_to :playing_card
- control (integer)
- cost (integer)
- name (string)
- production (integer)
- text (string)
- belongs_to :playing_card
- bullet_type (string)
- bullets (integer)
- cost (integer)
- influence (integer)
- name (string)
- text (string)
- upkeep (integer)
- belongs_to :gang
- belongs_to :playing_card
- name (string)
- bullet_bonus (integer, nullable)
- bullet_type (string, nullable)
- control (integer, nullable)
- cost (integer)
- influence (integer, nullable)
- name (string)
- text (string)
- belongs_to :playing_card
- name (string)
- production (integer)
- text (string)
- treasury (integer)
- belongs_to :playing_card
- belongs_to :gang
- cost (integer)
- name (string)
- text (string)
- belongs_to :playing_card
Associations
- belongs_to :card
Attributes
- ability_cost
- ghost_rock_cost
- play_phase
- repeat (bool)
- effect
Associations
- has_one :card, as: :cardable
Associations
- belongs_to :gang
- belongs_to :cardable, polymorphic: true
- (cardable_type: [Action, Deed, Dude, Goods, Spell])
- belongs_to :playing_card
- has_zero_or_many :abilities
- has_zero_or_many :keywords
- has_zero_or_many :traits
Attributes
- artwork
- flavor_text
- title
- text
Associations
- has_one :card, as: :cardable
Attributes
- control
- production
Associations
- has_one :card, as: :cardable
Attributes
- bullet_bonus
- bullet_type
- control
- influence
- upkeep
Associations
- has_zero_or_many :cards
Attributes
- name
Associations
- has_one :card, as: :cardable
Attributes
- bullet_bonus
- bullet_type
- control
- influence
Associations
- has_many :cards
Associations
- has_one :card, as: :cardable
Attributes
- production
- treasury
Associations
- belongs_to :card
Attributes
- play_phase
- effect