Class: Viewpoint::EWS::SOAP::EwsSoapResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/soap/soap_provider.rb

Overview

A Generic Class for SOAP returns.

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  @status, @code, @message = status, code, message

  # Items is an array where hash types get stored for return
  @items = []
end

Instance Attribute Details

#:messageString (readonly)

The text from the EWS element <m:ResponseCode>

Returns:

  • (String)

    the current value of :message



41
42
43
# File 'lib/soap/soap_provider.rb', line 41

def :message
  @:message
end

#codeObject (readonly)

Returns the value of attribute code.



43
44
45
# File 'lib/soap/soap_provider.rb', line 43

def code
  @code
end

#itemsObject

Returns the value of attribute items.



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

def items
  @items
end

#messageObject (readonly)

Returns the value of attribute message.



43
44
45
# File 'lib/soap/soap_provider.rb', line 43

def message
  @message
end

#soap_responseObject (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

#statusObject (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