Class: KazeClient::AssignPerformerRequest
- Inherits:
-
Utils::FinalRequest
- Object
- Request
- Utils::FinalRequest
- KazeClient::AssignPerformerRequest
- Includes:
- Utils::AuthentifiedRequest
- Defined in:
- lib/kaze_client/request/requests/jobs/assign_performer_request.rb
Overview
Assign a performer to the given job.
Constant Summary
Constants inherited from Request
Instance Attribute Summary
Attributes included from Utils::AuthentifiedRequest
Attributes inherited from Request
#body, #headers, #method, #query, #url
Instance Method Summary collapse
-
#initialize(id, performer_user_id) ⇒ AssignPerformerRequest
constructor
A new instance of AssignPerformerRequest.
Methods included from Utils::AuthentifiedRequest
Methods inherited from Request
Constructor Details
#initialize(id, performer_user_id) ⇒ AssignPerformerRequest
Returns a new instance of AssignPerformerRequest.
15 16 17 18 19 20 21 22 23 |
# File 'lib/kaze_client/request/requests/jobs/assign_performer_request.rb', line 15 def initialize(id, performer_user_id) super(:post, "api/jobs/#{id}/performers") @body = { job: { performer_user_id: performer_user_id.to_s } } end |