Class: Mushikago::Mitsubachi::ProjectCreateRequest

Inherits:
Request show all
Defined in:
lib/mushikago/mitsubachi/project_create_request.rb

Instance Attribute Summary

Attributes inherited from Http::Request

headers, host, http_method, params, path, port

Instance Method Summary (collapse)

Methods included from Auth::Signature

#add_signature!, #string_to_sign

Methods inherited from Http::Request

#[], #[]=, add_param, #to_http_request, #url_encoded_params

Constructor Details

- (ProjectCreateRequest) initialize(project_name, options = {})

A new instance of ProjectCreateRequest



14
15
16
17
18
19
20
21
22
23
# File 'lib/mushikago/mitsubachi/project_create_request.rb', line 14

def initialize project_name, options={}
  super(options)
  self.project_name = project_name
  self.dedicated = options[:dedicated]
  self.max_lead_time = options[:max_lead_time] if options.has_key?(:max_lead_time)
  self.stdout = options[:stdout]
  self.stderr = options[:stderr]
  self.system_log = options[:system_log]
  self.log_prefix = options[:log_prefix] if options.has_key?(:log_prefix)
end

Instance Method Details

- (Object) method_name



5
# File 'lib/mushikago/mitsubachi/project_create_request.rb', line 5

def method_name; 'project/create' end

- (Object) new_http_request



25
26
27
# File 'lib/mushikago/mitsubachi/project_create_request.rb', line 25

def new_http_request
  new_http_post_request(path)
end