Class: Viewpoint::EWS::SOAP::EwsSoapAvailabilityResponse
Overview
This is a speciality response class to handle the idiosynracies of Availability responses.
Instance Attribute Summary collapse
Instance Method Summary
collapse
#body, #envelope, #header, #initialize, #response_class, #response_message_text, #success?
Instance Attribute Details
#:message ⇒ String
The text from the EWS element <m:ResponseCode>
24
25
26
|
# File 'lib/ews/soap/ews_soap_availability_response.rb', line 24
def :message
@:message
end
|
Instance Method Details
#response ⇒ Object
30
31
32
|
# File 'lib/ews/soap/ews_soap_availability_response.rb', line 30
def response
body[0][response_key]
end
|
#response_code ⇒ Object
Also known as:
code
39
40
41
|
# File 'lib/ews/soap/ews_soap_availability_response.rb', line 39
def response_code
response_message[:elems][:response_code][:text]
end
|
#response_key ⇒ Object
44
45
46
|
# File 'lib/ews/soap/ews_soap_availability_response.rb', line 44
def response_key
key = body[0].keys.first
end
|
#response_message ⇒ Object
34
35
36
37
|
# File 'lib/ews/soap/ews_soap_availability_response.rb', line 34
def response_message
key = response.keys.first
response[key]
end
|
#response_messages ⇒ Object
26
27
28
|
# File 'lib/ews/soap/ews_soap_availability_response.rb', line 26
def response_messages
nil
end
|