Class: ZombieBattleground::Api::Requests::GetMatchesRequest
- Inherits:
-
Object
- Object
- ZombieBattleground::Api::Requests::GetMatchesRequest
- Includes:
- ActiveModel::Validations, RequestHelper, ValidationHelper
- Defined in:
- lib/zombie_battleground/api/requests/get_matches_request.rb
Overview
Request validator for GetMatches
Constant Summary
Constants included from RequestHelper
RequestHelper::BLACKLISTED_INSTANCE_VARIABLES
Instance Attribute Summary collapse
-
#id ⇒ Integer
Optionally set the Match’s id for filtered querying.
-
#limit ⇒ Integer
Optionally set the limit for max Matches returned.
-
#page ⇒ Integer
Optionally set the page number for filtered querying.
-
#player1_id ⇒ String
Optionally set the Match’s player1_id for filtered querying.
-
#player2_id ⇒ String
Optionally set the Match’s player2_id for filtered querying.
-
#status ⇒ String
Optionally set the Match’s status for filtered querying.
-
#version ⇒ String
Optionally set the Match’s version for filtered querying.
-
#winner_id ⇒ String
Optionally set the Match’s winner_id for filtered querying.
Instance Method Summary collapse
-
#uri ⇒ String
The URI for the endpoint.
Methods included from RequestHelper
Instance Attribute Details
#id ⇒ Integer
Optionally set the Match’s id for filtered querying
28 29 30 |
# File 'lib/zombie_battleground/api/requests/get_matches_request.rb', line 28 def id @id end |
#limit ⇒ Integer
Optionally set the limit for max Matches returned
112 113 114 |
# File 'lib/zombie_battleground/api/requests/get_matches_request.rb', line 112 def limit @limit end |
#page ⇒ Integer
Optionally set the page number for filtered querying
100 101 102 |
# File 'lib/zombie_battleground/api/requests/get_matches_request.rb', line 100 def page @page end |
#player1_id ⇒ String
Optionally set the Match’s player1_id for filtered querying
40 41 42 |
# File 'lib/zombie_battleground/api/requests/get_matches_request.rb', line 40 def player1_id @player1_id end |
#player2_id ⇒ String
Optionally set the Match’s player2_id for filtered querying
52 53 54 |
# File 'lib/zombie_battleground/api/requests/get_matches_request.rb', line 52 def player2_id @player2_id end |
#status ⇒ String
Optionally set the Match’s status for filtered querying
64 65 66 |
# File 'lib/zombie_battleground/api/requests/get_matches_request.rb', line 64 def status @status end |
#version ⇒ String
Optionally set the Match’s version for filtered querying
76 77 78 |
# File 'lib/zombie_battleground/api/requests/get_matches_request.rb', line 76 def version @version end |
#winner_id ⇒ String
Optionally set the Match’s winner_id for filtered querying
88 89 90 |
# File 'lib/zombie_battleground/api/requests/get_matches_request.rb', line 88 def winner_id @winner_id end |
Instance Method Details
#uri ⇒ String
The URI for the endpoint
132 133 134 |
# File 'lib/zombie_battleground/api/requests/get_matches_request.rb', line 132 def uri 'matches' end |