Module: AWS
Instance Method Summary collapse
- #http_get_xml(host, path, request_params) ⇒ Object
-
#time_xml ⇒ Object
AWS time xml format: YYYY-MM-DDThh:mm:ssZ> Zone is set to Z or UTC.
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_xml ⇒ Object
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 |