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