Method: Eve::API::Response#initialize

Defined in:
lib/eve/api/response.rb

#initialize(xml, options = {}) ⇒ Response

Returns a new instance of Response.



14
15
16
17
18
19
20
21
# File 'lib/eve/api/response.rb', line 14

def initialize(xml, options = {})
  @options = options
  xml = Hpricot::XML(xml).root if xml.kind_of?(String)
  @xml = xml
  #@attributes = {}

  parse_xml unless options[:process_xml] == false
end