Sha256: b7ccaa34869d72199e4f4aff279ac0da74d41d36ab7921b4b65f9392bde71e50
Contents?: true
Size: 676 Bytes
Versions: 6
Compression:
Stored size: 676 Bytes
Contents
module AceClient class Json4 < Base4 format :json def dryrun(action, params={}) create_request(action, params) end def action(action, params={}) create_request(action, params).perform end def create_request(action, params={}) @datetime = Time.now.utc.strftime("%Y%m%dT%H%M%SZ") @params = params options = self.class.default_options.dup @body = options[:body] = @params.to_json @headers = {} headers['x-amz-target'] = "Hoge_20141213.#{action}" add_authorization! options[:headers] = headers HTTParty::Request.new(Net::HTTP::Post, endpoint_url + @path, options) end end end
Version data entries
6 entries across 6 versions & 1 rubygems