Sha256: 3b5636d66e0e913515832ee7e38875699914c4f10ee6bf4c046bfc541f80d51d
Contents?: true
Size: 1.9 KB
Versions: 1
Compression:
Stored size: 1.9 KB
Contents
# -*- coding: utf-8 -*- module Mushikago module Mitsubachi class HttpPushRequest < Mushikago::Http::PostRequest def path; '/1/mitsubachi/http/push' end request_parameter :url request_parameter :project_name request_parameter :script_name request_parameter :file_name request_parameter :file_input_key request_parameter :entity_parameter request_parameter :parameters request_parameter :header_overwrite request_parameter :mime_type request_parameter :cookiejar do |c| c.to_json end request_parameter :parent_request_id request_parameter :group_id request_parameter :unique_key request_parameter :unique_key_expires do |v| v.to_s end request_parameter :encode def initialize project_name, url, script_name, file_name, file_input_key, options={} super(options) self.project_name = project_name self.url = url self.script_name = script_name self.file_name = file_name self.file_input_key = file_input_key self.entity_parameter = options[:entity_parameter] if options.has_key?(:entity_parameter) self.parameters = options[:parameters] if options.has_key?(:parameters) self.header_overwrite = options[:header_overwrite] if options.has_key?(:header_overwrite) self.mime_type = options[:mime_type] if options.has_key?(:mime_type) self.cookiejar = options[:cookiejar] if options.has_key?(:cookiejar) self.parent_request_id = options[:parent_request_id] if options.has_key?(:parent_request_id) self.group_id = options[:group_id] if options.has_key?(:group_id) self.unique_key = options[:unique_key] if options.has_key?(:unique_key) self.unique_key_expires = options[:unique_key_expires] if options.has_key?(:unique_key_expires) self.encode = options[:encode] if options.has_key?(:encode) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mushikago-sdk-2.4.3 | lib//mushikago/mitsubachi/http_push_request.rb |