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

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

Constant Summary

Constants included from Viewpoint::EWS

ConnectingSID

Instance Attribute Summary

Attributes included from Viewpoint::EWS

#logger

Instance Method Summary collapse

Methods included from Viewpoint::EWS

#remove_impersonation, root_logger, #set_impersonation

Constructor Details

#initialize(soap_resp) ⇒ EwsParser

Returns a new instance of EwsParser.

Parameters:

  • soap_resp (String)


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

#parse(opts = {}) ⇒ Object



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