Class: ZombieBattleground::Api::Requests::GetCardsRequest
- Inherits:
-
Object
- Object
- ZombieBattleground::Api::Requests::GetCardsRequest
- Includes:
- ActiveModel::Validations, RequestHelper, ValidationHelper
- Defined in:
- lib/zombie_battleground/api/requests/get_cards_request.rb
Overview
Request validator for GetCards
Constant Summary
Constants included from RequestHelper
RequestHelper::BLACKLISTED_INSTANCE_VARIABLES
Instance Attribute Summary collapse
-
#cost ⇒ Integer
Optionally set the Card’s cost for filtered querying.
-
#damage ⇒ Integer
Optionally set the Card’s damage for filtered querying.
-
#health ⇒ Integer
Optionally set the Card’s health for filtered querying.
-
#id ⇒ Integer
Optionally set the Card’s id for filtered querying.
-
#kind ⇒ String
Optionally set the Card’s set for filtered querying.
-
#limit ⇒ Integer
Optionally set the limit for max Cards returned.
-
#mould_id ⇒ String
Optionally mould_id the Card’s mould_id for filtered querying.
-
#name ⇒ String
Optionally set the Card’s name for filtered querying.
-
#page ⇒ Integer
Optionally set the page number for filtered querying.
-
#rank ⇒ String
Optionally set the Card’s rank for filtered querying.
-
#rarity ⇒ String
Optionally set the Card’s rarity for filtered querying.
-
#set ⇒ String
Optionally set the Card’s set for filtered querying.
-
#type ⇒ String
Optionally set the Card’s type for filtered querying.
-
#version ⇒ String
Optionally version the Card’s version for filtered querying.
Instance Method Summary collapse
-
#uri ⇒ String
The URI for the endpoint.
Methods included from RequestHelper
Instance Attribute Details
#cost ⇒ Integer
Optionally set the Card’s cost for filtered querying
160 161 162 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 160 def cost @cost end |
#damage ⇒ Integer
Optionally set the Card’s damage for filtered querying
136 137 138 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 136 def damage @damage end |
#health ⇒ Integer
Optionally set the Card’s health for filtered querying
148 149 150 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 148 def health @health end |
#id ⇒ Integer
Optionally set the Card’s id for filtered querying
28 29 30 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 28 def id @id end |
#kind ⇒ String
Optionally set the Card’s set for filtered querying
64 65 66 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 64 def kind @kind end |
#limit ⇒ Integer
Optionally set the limit for max Cards returned
184 185 186 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 184 def limit @limit end |
#mould_id ⇒ String
Optionally mould_id the Card’s mould_id for filtered querying
40 41 42 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 40 def mould_id @mould_id end |
#name ⇒ String
Optionally set the Card’s name for filtered querying
88 89 90 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 88 def name @name end |
#page ⇒ Integer
Optionally set the page number for filtered querying
172 173 174 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 172 def page @page end |
#rank ⇒ String
Optionally set the Card’s rank for filtered querying
100 101 102 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 100 def rank @rank end |
#rarity ⇒ String
Optionally set the Card’s rarity for filtered querying
124 125 126 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 124 def rarity @rarity end |
#set ⇒ String
Optionally set the Card’s set for filtered querying
64 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 64 attr_accessor :kind |
#type ⇒ String
Optionally set the Card’s type for filtered querying
112 113 114 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 112 def type @type end |
#version ⇒ String
Optionally version the Card’s version for filtered querying
52 53 54 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 52 def version @version end |
Instance Method Details
#uri ⇒ String
The URI for the endpoint
210 211 212 |
# File 'lib/zombie_battleground/api/requests/get_cards_request.rb', line 210 def uri 'cards' end |