Class: Viewpoint::EWS::SOAP::EwsSoapAvailabilityResponse

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

Overview

This is a speciality response class to handle the idiosynracies of Availability responses.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from EwsSoapResponse

#body, #envelope, #header, #initialize, #response_class, #response_message_text, #success?

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>



24
25
26
# File 'lib/ews/soap/ews_soap_availability_response.rb', line 24

def :message
  @:message
end

Instance Method Details

#responseObject



30
31
32
# File 'lib/ews/soap/ews_soap_availability_response.rb', line 30

def response
  body[0][response_key]
end

#response_codeObject 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_keyObject



44
45
46
# File 'lib/ews/soap/ews_soap_availability_response.rb', line 44

def response_key
  key = body[0].keys.first
end

#response_messageObject



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_messagesObject



26
27
28
# File 'lib/ews/soap/ews_soap_availability_response.rb', line 26

def response_messages
  nil
end