Class: ZombieBattleground::Api::Requests::GetDeckRequest
- Inherits:
-
Object
- Object
- ZombieBattleground::Api::Requests::GetDeckRequest
- Includes:
- ActiveModel::Validations, RequestHelper, ValidationHelper
- Defined in:
- lib/zombie_battleground/api/requests/get_deck_request.rb
Overview
Request validator for GetDeck
Constant Summary
Constants included from RequestHelper
RequestHelper::BLACKLISTED_INSTANCE_VARIABLES
Instance Attribute Summary collapse
-
#id ⇒ Integer
Deck’s id.
Instance Method Summary collapse
-
#params ⇒ Hash
Deck does not take params, return an empty Hash.
-
#uri ⇒ String
The URI for the endpoint.
Instance Attribute Details
#id ⇒ Integer
Deck’s id
28 29 30 |
# File 'lib/zombie_battleground/api/requests/get_deck_request.rb', line 28 def id @id end |
Instance Method Details
#params ⇒ Hash
Deck does not take params, return an empty Hash
54 55 56 |
# File 'lib/zombie_battleground/api/requests/get_deck_request.rb', line 54 def params {} end |
#uri ⇒ String
The URI for the endpoint
41 42 43 |
# File 'lib/zombie_battleground/api/requests/get_deck_request.rb', line 41 def uri "deck/#{id}" end |