Class: Services::MdsWsResponse
- Inherits:
-
Object
- Object
- Services::MdsWsResponse
- Defined in:
- app/models/services/mds_ws_response.rb
Constant Summary collapse
- STATUS_ERROR =
"ERROR"
- STATUS_SUCCESS =
"SUCCESS"
Instance Attribute Summary collapse
-
#acknowledgement_id ⇒ Object
Returns the value of attribute acknowledgement_id.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#status ⇒ Object
Returns the value of attribute status.
-
#submission_datetime ⇒ Object
Returns the value of attribute submission_datetime.
Class Method Summary collapse
Instance Attribute Details
#acknowledgement_id ⇒ Object
Returns the value of attribute acknowledgement_id.
8 9 10 |
# File 'app/models/services/mds_ws_response.rb', line 8 def acknowledgement_id @acknowledgement_id end |
#error_message ⇒ Object
Returns the value of attribute error_message.
8 9 10 |
# File 'app/models/services/mds_ws_response.rb', line 8 def @error_message end |
#filename ⇒ Object
Returns the value of attribute filename.
8 9 10 |
# File 'app/models/services/mds_ws_response.rb', line 8 def filename @filename end |
#status ⇒ Object
Returns the value of attribute status.
8 9 10 |
# File 'app/models/services/mds_ws_response.rb', line 8 def status @status end |
#submission_datetime ⇒ Object
Returns the value of attribute submission_datetime.
8 9 10 |
# File 'app/models/services/mds_ws_response.rb', line 8 def submission_datetime @submission_datetime end |
Class Method Details
.parse_xml_response(response_xml) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/models/services/mds_ws_response.rb', line 10 def self.parse_xml_response(response_xml) handler = MdsWsResponseHandler.new parser = LibXML::XML::SaxParser.string(response_xml) parser.callbacks = handler parser.parse handler.response end |