class ZombieBattleground::Api::Models::SimpleCard
Validator for SimpleCard
(only returned from GetDeck(s))
Attributes
amount[R]
@!attribute [r] amount the amount of the Card
in the deck
@return [Integer]
@example
simple_card.amount #=> 2
@api public
card_name[R]
@!attribute [r] card_name
the Card's name
@return [String]
@example
simple_card.card_name #=> "Hazmaz"
@api public
Public Class Methods
new(card)
click to toggle source
Creates a new SimpleCard
(returned by GetDeck(s))
@param card [Hash] Parsed JSON response
@return [ZombieBattleground::Api::SimpleCard]
@example
simple_card = ZombieBattleground::Api::SimpleCard.new(parsed_json) # => ZombieBattleground::Api::SimpleCard
@api public
# File lib/zombie_battleground/api/models/simple_card.rb, line 55 def initialize(card) card.each do |key, value| instance_variable_set("@#{key}".to_sym, value) end end