Module: AWS

Includes:
Crack, Typhoeus
Included in:
Aws::Authentication
Defined in:
lib/lamed/aws/aws.rb

Instance Method Summary collapse

Instance Method Details

#http_get_xml(host, path, request_params) ⇒ Object



19
20
21
22
23
24
# File 'lib/lamed/aws/aws.rb', line 19

def http_get_xml(host, path, request_params)
  path = path == "/" ? path : path + "/"
  req = path + "?" + request_params
  res = Request.get(@host + req)
  XML.parse res.body
end

#time_xmlObject

AWS time xml format: YYYY-MM-DDThh:mm:ssZ> Zone is set to Z or UTC



15
16
17
# File 'lib/lamed/aws/aws.rb', line 15

def time_xml
  Time.now.utc.xmlschema
end