Class: Viewpoint::EWS::SOAP::EwsSoapRoomResponse
- Inherits:
-
EwsSoapResponse
- Object
- EwsSoapResponse
- Viewpoint::EWS::SOAP::EwsSoapRoomResponse
- Defined in:
- lib/ews/soap/ews_soap_room_response.rb
Overview
A class for roomlists SOAP returns.
Instance Attribute Summary collapse
-
#:message ⇒ String
readonly
The text from the EWS element <m:ResponseCode>.
Instance Method Summary collapse
Methods inherited from EwsSoapResponse
#body, #envelope, #header, #initialize, #response, #response_class, #response_code, #response_message, #response_message_text
Constructor Details
This class inherits a constructor from Viewpoint::EWS::SOAP::EwsSoapResponse
Instance Attribute Details
#:message ⇒ String (readonly)
The text from the EWS element <m:ResponseCode>
23 24 25 |
# File 'lib/ews/soap/ews_soap_room_response.rb', line 23
def :message
@:message
end
|
Instance Method Details
#response_messages ⇒ Object
25 26 27 28 29 30 |
# File 'lib/ews/soap/ews_soap_room_response.rb', line 25 def key = response.keys.first subresponse = response[key][:elems][1] response_class = subresponse.keys.first subresponse[response_class][:elems] end |
#roomsArray ⇒ Object
32 33 34 |
# File 'lib/ews/soap/ews_soap_room_response.rb', line 32 def roomsArray response[:get_rooms_response][:elems][1][:rooms][:elems] end |
#success? ⇒ Boolean
36 37 38 |
# File 'lib/ews/soap/ews_soap_room_response.rb', line 36 def success? response.first[1][:attribs][:response_class] == "Success" end |