Class: Services::MdsWsResponse

Inherits:
Object
  • Object
show all
Defined in:
app/models/services/mds_ws_response.rb

Constant Summary collapse

STATUS_ERROR =
"ERROR"
STATUS_SUCCESS =
"SUCCESS"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#acknowledgement_idObject

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_messageObject

Returns the value of attribute error_message.



8
9
10
# File 'app/models/services/mds_ws_response.rb', line 8

def error_message
  @error_message
end

#filenameObject

Returns the value of attribute filename.



8
9
10
# File 'app/models/services/mds_ws_response.rb', line 8

def filename
  @filename
end

#statusObject

Returns the value of attribute status.



8
9
10
# File 'app/models/services/mds_ws_response.rb', line 8

def status
  @status
end

#submission_datetimeObject

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