Class: KualiRice::StandardResponse
- Inherits:
-
ErrorResponse
- Object
- ErrorResponse
- KualiRice::StandardResponse
- Defined in:
- lib/kuali-rice/Responses/StandardResponse.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#appDocId ⇒ Object
Returns the value of attribute appDocId.
-
#createDate ⇒ Object
Returns the value of attribute createDate.
-
#docStatus ⇒ Object
Returns the value of attribute docStatus.
-
#initiatorName ⇒ Object
Returns the value of attribute initiatorName.
-
#initiatorPrincipalId ⇒ Object
Returns the value of attribute initiatorPrincipalId.
-
#routedByPrincipalId ⇒ Object
Returns the value of attribute routedByPrincipalId.
-
#routedByUserName ⇒ Object
Returns the value of attribute routedByUserName.
Attributes inherited from ErrorResponse
Instance Method Summary collapse
-
#initialize(xmldata = "") ⇒ StandardResponse
constructor
A new instance of StandardResponse.
- #setStandardResponse(xmldata) ⇒ Object
Constructor Details
#initialize(xmldata = "") ⇒ StandardResponse
Returns a new instance of StandardResponse.
13 14 15 |
# File 'lib/kuali-rice/Responses/StandardResponse.rb', line 13 def initialize(xmldata="") setStandardResponse(xmldata) end |
Instance Attribute Details
#appDocId ⇒ Object
Returns the value of attribute appDocId.
10 11 12 |
# File 'lib/kuali-rice/Responses/StandardResponse.rb', line 10 def appDocId @appDocId end |
#createDate ⇒ Object
Returns the value of attribute createDate.
6 7 8 |
# File 'lib/kuali-rice/Responses/StandardResponse.rb', line 6 def createDate @createDate end |
#docStatus ⇒ Object
Returns the value of attribute docStatus.
5 6 7 |
# File 'lib/kuali-rice/Responses/StandardResponse.rb', line 5 def docStatus @docStatus end |
#initiatorName ⇒ Object
Returns the value of attribute initiatorName.
11 12 13 |
# File 'lib/kuali-rice/Responses/StandardResponse.rb', line 11 def initiatorName @initiatorName end |
#initiatorPrincipalId ⇒ Object
Returns the value of attribute initiatorPrincipalId.
7 8 9 |
# File 'lib/kuali-rice/Responses/StandardResponse.rb', line 7 def initiatorPrincipalId @initiatorPrincipalId end |
#routedByPrincipalId ⇒ Object
Returns the value of attribute routedByPrincipalId.
8 9 10 |
# File 'lib/kuali-rice/Responses/StandardResponse.rb', line 8 def routedByPrincipalId @routedByPrincipalId end |
#routedByUserName ⇒ Object
Returns the value of attribute routedByUserName.
9 10 11 |
# File 'lib/kuali-rice/Responses/StandardResponse.rb', line 9 def routedByUserName @routedByUserName end |
Instance Method Details
#setStandardResponse(xmldata) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/kuali-rice/Responses/StandardResponse.rb', line 17 def setStandardResponse(xmldata) if not xmldata.eql?("") then parseddata = XmlSimple.xml_in(xmldata) @docStatus = parseddata['docStatus'][0] if !parseddata['docStatus'].nil? @createDate = parseddata['createDate'][0] if !parseddata['createDate'].nil? @initiatorPrincipalId = parseddata['initiatorPrincipalId'][0] if !parseddata['initiatorPrincipalId'].nil? @routedByPrincipalId = parseddata['routedByPrincipalId'][0] if !parseddata['routedByPrincipalId'].nil? @routedByUserName = parseddata['routedByUserName'][0] if !parseddata['routedByUserName'].nil? @appDocId = parseddata['appDocId'][0] if !parseddata['appDocId'].nil? @initiatorName = parseddata['initiatorName'][0] if !parseddata['initiatorName'].nil? @errorMessage = parseddata['errorMessage'][0] if !parseddata['errorMessage'].nil? end end |