Class: ZombieBattleground::Api::Requests::GetCardRequest
- Inherits:
-
Object
- Object
- ZombieBattleground::Api::Requests::GetCardRequest
- Includes:
- ActiveModel::Validations, RequestHelper, ValidationHelper
- Defined in:
- lib/zombie_battleground/api/requests/get_card_request.rb
Overview
Request validator for GetCard
Constant Summary
Constants included from RequestHelper
RequestHelper::BLACKLISTED_INSTANCE_VARIABLES
Instance Attribute Summary collapse
-
#mould_id ⇒ String
Card’s mould_id.
-
#version ⇒ String
Deck’s version.
Instance Method Summary collapse
-
#uri ⇒ String
The URI for the endpoint.
Methods included from RequestHelper
Instance Attribute Details
#mould_id ⇒ String
Card’s mould_id
30 31 32 |
# File 'lib/zombie_battleground/api/requests/get_card_request.rb', line 30 def mould_id @mould_id end |
#version ⇒ String
Deck’s version
42 43 44 |
# File 'lib/zombie_battleground/api/requests/get_card_request.rb', line 42 def version @version end |
Instance Method Details
#uri ⇒ String
The URI for the endpoint
56 57 58 |
# File 'lib/zombie_battleground/api/requests/get_card_request.rb', line 56 def uri 'card' end |