Class: KazeClient::UpdateTemplateRequest

Inherits:
KazeClient::Utils::FinalRequest show all
Includes:
KazeClient::Utils::AuthentifiedRequest
Defined in:
lib/kaze_client/request/requests/jobs/update_template_request.rb

Overview

Update data of the given template on the given job.

Constant Summary

Constants inherited from Request

Request::DEFAULT_HEADERS

Instance Attribute Summary

Attributes included from KazeClient::Utils::AuthentifiedRequest

#token

Attributes inherited from Request

#body, #headers, #method, #query, #url

Instance Method Summary collapse

Methods included from KazeClient::Utils::AuthentifiedRequest

#with_token

Methods inherited from Request

#error_for, #parameters

Constructor Details

#initialize(id, template_id, body) ⇒ UpdateTemplateRequest

Returns a new instance of UpdateTemplateRequest.

Since:

  • 0.1.0



15
16
17
18
19
# File 'lib/kaze_client/request/requests/jobs/update_template_request.rb', line 15

def initialize(id, template_id, body)
  super(:put, "api/performer/jobs/#{id}/templates/#{template_id}")

  @body = body
end