class ZombieBattleground::Api::Requests::GetCardsRequest
Request validator for GetCards
Attributes
@!attribute [r] cost Optionally set the Card's cost for filtered querying
@return [Integer]
@example
request.cost #=> 1
@api public
@!attribute [r] damage Optionally set the Card's damage for filtered querying
@return [Integer]
@example
request.damage #=> 1
@api public
@!attribute [r] health Optionally set the Card's health for filtered querying
@return [Integer]
@example
request.health #=> 1
@api public
@!attribute [r] id Optionally set the Card's id for filtered querying
@return [Integer]
@example
request.id #=> 1
@api public
@!attribute [r] set Optionally set the Card's set for filtered querying
@return [String]
@example
request.set #=> "AIR"
@api public
@!attribute [r] limit Optionally set the limit for max Cards returned
@return [Integer]
@example
request.limit #=> 100
@api public
@!attribute [r] name Optionally set the Card's name for filtered querying
@return [String]
@example
request.name #=> "Whizpar"
@api public
@!attribute [r] page Optionally set the page number for filtered querying
@return [Integer]
@example
request.page #=> 1
@api public
@!attribute [r] rank Optionally set the Card's rank for filtered querying
@return [String]
@example
request.rank #=> "MINION"
@api public
@!attribute [r] rarity Optionally set the Card's rarity for filtered querying
@return [String]
@example
request.rarity #=> ""
@api public
@!attribute [r] set Optionally set the Card's set for filtered querying
@return [String]
@example
request.set #=> "AIR"
@api public
@!attribute [r] type Optionally set the Card's type for filtered querying
@return [String]
@example
request.type #=> "WALKER"
@api public
@!attribute [r] version Optionally version the Card's version for filtered querying
@return [String]
@example
request.version #=> "v3"
@api public
Public Instance Methods
The URI for the endpoint
@return [String]
@example
request.uri # => "cards"
@api public
# File lib/zombie_battleground/api/requests/get_cards_request.rb, line 210 def uri 'cards' end