class ZombieBattleground::Api::Requests::GetCardsRequest

Request validator for GetCards

Attributes

cost[RW]

@!attribute [r] cost Optionally set the Card's cost for filtered querying

@return [Integer]

@example

request.cost #=> 1

@api public

damage[RW]

@!attribute [r] damage Optionally set the Card's damage for filtered querying

@return [Integer]

@example

request.damage #=> 1

@api public

health[RW]

@!attribute [r] health Optionally set the Card's health for filtered querying

@return [Integer]

@example

request.health #=> 1

@api public

id[RW]

@!attribute [r] id Optionally set the Card's id for filtered querying

@return [Integer]

@example

request.id #=> 1

@api public

kind[RW]

@!attribute [r] set Optionally set the Card's set for filtered querying

@return [String]

@example

request.set #=> "AIR"

@api public

limit[RW]

@!attribute [r] limit Optionally set the limit for max Cards returned

@return [Integer]

@example

request.limit #=> 100

@api public

mould_id[RW]

@!attribute [r] mould_id Optionally mould_id the Card's mould_id for filtered querying

@return [String]

@example

request.mould_id #=> "1"

@api public

name[RW]

@!attribute [r] name Optionally set the Card's name for filtered querying

@return [String]

@example

request.name #=> "Whizpar"

@api public

page[RW]

@!attribute [r] page Optionally set the page number for filtered querying

@return [Integer]

@example

request.page #=> 1

@api public

rank[RW]

@!attribute [r] rank Optionally set the Card's rank for filtered querying

@return [String]

@example

request.rank #=> "MINION"

@api public

rarity[RW]

@!attribute [r] rarity Optionally set the Card's rarity for filtered querying

@return [String]

@example

request.rarity #=> ""

@api public

set[RW]

@!attribute [r] set Optionally set the Card's set for filtered querying

@return [String]

@example

request.set #=> "AIR"

@api public

type[RW]

@!attribute [r] type Optionally set the Card's type for filtered querying

@return [String]

@example

request.type #=> "WALKER"

@api public

version[RW]

@!attribute [r] version Optionally version the Card's version for filtered querying

@return [String]

@example

request.version #=> "v3"

@api public

Public Instance Methods

uri() click to toggle source

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