Class: ZombieBattleground::Api::Requests::GetDecksRequest
- Inherits:
-
Object
- Object
- ZombieBattleground::Api::Requests::GetDecksRequest
- Includes:
- ActiveModel::Validations, RequestHelper, ValidationHelper
- Defined in:
- lib/zombie_battleground/api/requests/get_decks_request.rb
Overview
Request validator for GetDecks
Constant Summary
Constants included from RequestHelper
RequestHelper::BLACKLISTED_INSTANCE_VARIABLES
Instance Attribute Summary collapse
-
#deck_id ⇒ Integer
Optionally set the Deck’s deck_id for filtered querying.
-
#hero_id ⇒ Integer
Optionally set the Deck’s hero_id for filtered querying.
-
#id ⇒ Integer
Optionally set the Deck’s id for filtered querying.
-
#limit ⇒ Integer
Optionally set the limit for max Matches returned.
-
#name ⇒ String
Optionally set the Deck’s name for filtered querying.
-
#page ⇒ Integer
Optionally set the page number for filtered querying.
-
#primary_skill_id ⇒ Integer
Optionally set the Deck’s primary_skill_id for filtered querying.
-
#secondary_skill_id ⇒ Integer
Optionally set the Deck’s secondary_skill_id for filtered querying.
-
#user_id ⇒ String
Optionally set the Deck’s user_id for filtered querying.
-
#version ⇒ String
Optionally set the Deck’s version for filtered querying.
Instance Method Summary collapse
-
#uri ⇒ String
The URI for the endpoint.
Methods included from RequestHelper
Instance Attribute Details
#deck_id ⇒ Integer
Optionally set the Deck’s deck_id for filtered querying
49 50 51 |
# File 'lib/zombie_battleground/api/requests/get_decks_request.rb', line 49 def deck_id @deck_id end |
#hero_id ⇒ Integer
Optionally set the Deck’s hero_id for filtered querying
71 72 73 |
# File 'lib/zombie_battleground/api/requests/get_decks_request.rb', line 71 def hero_id @hero_id end |
#id ⇒ Integer
Optionally set the Deck’s id for filtered querying
27 28 29 |
# File 'lib/zombie_battleground/api/requests/get_decks_request.rb', line 27 def id @id end |
#limit ⇒ Integer
Optionally set the limit for max Matches returned
126 127 128 |
# File 'lib/zombie_battleground/api/requests/get_decks_request.rb', line 126 def limit @limit end |
#name ⇒ String
Optionally set the Deck’s name for filtered querying
60 61 62 |
# File 'lib/zombie_battleground/api/requests/get_decks_request.rb', line 60 def name @name end |
#page ⇒ Integer
Optionally set the page number for filtered querying
115 116 117 |
# File 'lib/zombie_battleground/api/requests/get_decks_request.rb', line 115 def page @page end |
#primary_skill_id ⇒ Integer
Optionally set the Deck’s primary_skill_id for filtered querying
82 83 84 |
# File 'lib/zombie_battleground/api/requests/get_decks_request.rb', line 82 def primary_skill_id @primary_skill_id end |
#secondary_skill_id ⇒ Integer
Optionally set the Deck’s secondary_skill_id for filtered querying
93 94 95 |
# File 'lib/zombie_battleground/api/requests/get_decks_request.rb', line 93 def secondary_skill_id @secondary_skill_id end |
#user_id ⇒ String
Optionally set the Deck’s user_id for filtered querying
38 39 40 |
# File 'lib/zombie_battleground/api/requests/get_decks_request.rb', line 38 def user_id @user_id end |
#version ⇒ String
Optionally set the Deck’s version for filtered querying
104 105 106 |
# File 'lib/zombie_battleground/api/requests/get_decks_request.rb', line 104 def version @version end |
Instance Method Details
#uri ⇒ String
The URI for the endpoint
148 149 150 |
# File 'lib/zombie_battleground/api/requests/get_decks_request.rb', line 148 def uri 'decks' end |