Class: Viewpoint::EWS::SOAP::EwsParser
- Inherits:
-
Object
- Object
- Viewpoint::EWS::SOAP::EwsParser
- Includes:
- Viewpoint::EWS
- Defined in:
- lib/ews/soap/parsers/ews_parser.rb
Constant Summary
Constants included from Viewpoint::EWS
Instance Attribute Summary
Attributes included from Viewpoint::EWS
Instance Method Summary collapse
-
#initialize(soap_resp) ⇒ EwsParser
constructor
A new instance of EwsParser.
- #parse(opts = {}) ⇒ Object
Methods included from Viewpoint::EWS
#remove_impersonation, root_logger, #set_impersonation
Constructor Details
#initialize(soap_resp) ⇒ EwsParser
Returns a new instance of EwsParser.
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 |