Class: Viewpoint::EWS::SOAP::EwsSoapResponse
- Inherits:
-
Object
- Object
- Viewpoint::EWS::SOAP::EwsSoapResponse
- Defined in:
- lib/soap/soap_provider.rb
Overview
A Generic Class for SOAP returns.
Instance Attribute Summary collapse
-
#:message ⇒ String
readonly
The text from the EWS element <m:ResponseCode>.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#items ⇒ Object
Returns the value of attribute items.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#soap_response ⇒ Object
readonly
Returns the value of attribute soap_response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, code, message) ⇒ EwsSoapResponse
constructor
A new instance of EwsSoapResponse.
- #set_soap_resp(response) ⇒ Object
Constructor Details
#initialize(status, code, message) ⇒ EwsSoapResponse
Returns a new instance of EwsSoapResponse.
46 47 48 49 50 51 |
# File 'lib/soap/soap_provider.rb', line 46 def initialize(status, code, ) @status, @code, @message = status, code, # Items is an array where hash types get stored for return @items = [] end |
Instance Attribute Details
#:message ⇒ String (readonly)
The text from the EWS element <m:ResponseCode>
41 42 43 |
# File 'lib/soap/soap_provider.rb', line 41
def :message
@:message
end
|
#code ⇒ Object (readonly)
Returns the value of attribute code.
43 44 45 |
# File 'lib/soap/soap_provider.rb', line 43 def code @code end |
#items ⇒ Object
Returns the value of attribute items.
44 45 46 |
# File 'lib/soap/soap_provider.rb', line 44 def items @items end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
43 44 45 |
# File 'lib/soap/soap_provider.rb', line 43 def @message end |
#soap_response ⇒ Object (readonly)
Returns the value of attribute soap_response.
43 44 45 |
# File 'lib/soap/soap_provider.rb', line 43 def soap_response @soap_response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
43 44 45 |
# File 'lib/soap/soap_provider.rb', line 43 def status @status end |
Instance Method Details
#set_soap_resp(response) ⇒ Object
53 54 55 |
# File 'lib/soap/soap_provider.rb', line 53 def set_soap_resp(response) @soap_response = response end |