Class: Viewpoint::EWS::SOAP::EwsParser

Inherits:
Object
  • Object
show all
Includes:
Viewpoint::EWS
Defined in:
lib/ews/soap/parsers/ews_parser.rb

Instance Attribute Summary

Attributes included from Viewpoint::EWS

#logger

Instance Method Summary (collapse)

Methods included from Viewpoint::EWS

root_logger

Constructor Details

- (EwsParser) initialize(soap_resp)

A new instance of EwsParser

Parameters:



24
25
26
27
# File 'lib/ews/soap/parsers/ews_parser.rb', line 24

def initialize(soap_resp)
  @soap_resp  = soap_resp
  @sax_doc    = EwsSaxDocument.new
end

Instance Method Details

- (Object) parse(opts = {})



29
30
31
32
33
# File 'lib/ews/soap/parsers/ews_parser.rb', line 29

def parse(opts = {})
  opts[:response_class] ||= EwsSoapResponse
  sax_parser.parse(@soap_resp)
  opts[:response_class].new @sax_doc.struct
end