Class: Viewpoint::EWS::SOAP::EwsSoapRoomlistResponse

Inherits:
EwsSoapResponse show all
Defined in:
lib/ews/soap/ews_soap_roomlist_response.rb

Overview

A class for roomlists SOAP returns.

Instance Attribute Summary collapse

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

#:messageString (readonly)

The text from the EWS element <m:ResponseCode>

Returns:

  • (String)

    the current value of :message



23
24
25
# File 'lib/ews/soap/ews_soap_roomlist_response.rb', line 23

def :message
  @:message
end

Instance Method Details

#response_messagesObject



25
26
27
28
29
30
# File 'lib/ews/soap/ews_soap_roomlist_response.rb', line 25

def response_messages
  key = response.keys.first
  subresponse = response[key][:elems][1]
  response_class = subresponse.keys.first
  subresponse[response_class][:elems]
end

#roomListsArrayObject



32
33
34
# File 'lib/ews/soap/ews_soap_roomlist_response.rb', line 32

def roomListsArray
  response[:get_room_lists_response][:elems][1][:room_lists][:elems]
end

#success?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/ews/soap/ews_soap_roomlist_response.rb', line 36

def success?
  response.first[1][:attribs][:response_class] == "Success"
end