Class: EC2::RegisterImageResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/EC2/responses.rb

Constant Summary collapse

ELEMENT_XPATH =
"RegisterImageResponse/imageId"

Constants inherited from Response

EC2::Response::ERROR_XPATH

Instance Attribute Summary

Attributes inherited from Response

#http_response, #http_xml, #structure

Instance Method Summary collapse

Methods inherited from Response

#initialize, #is_error?, #parse_error, #to_s

Constructor Details

This class inherits a constructor from EC2::Response

Instance Method Details

#parseObject



79
80
81
82
# File 'lib/EC2/responses.rb', line 79

def parse
  doc = REXML::Document.new(@http_xml)
  lines = [["IMAGE", REXML::XPath.first(doc, ELEMENT_XPATH).text]]
end