Class: ExactTargetClient::SoapResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/exact_target_client/exact_target_soap_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, result_key, client) ⇒ SoapResponse

Returns a new instance of SoapResponse.



5
6
7
8
9
10
11
12
# File 'lib/exact_target_client/exact_target_soap_client.rb', line 5

def initialize(response, result_key, client)
  @results = []
  @result_key = result_key
  @client = client
  parse_response response
rescue => e
  raise ExactTargetClient::ExactTargetAPI::ClientException.new("SOAP Client Error: #{e.message}")
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



3
4
5
# File 'lib/exact_target_client/exact_target_soap_client.rb', line 3

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/exact_target_client/exact_target_soap_client.rb', line 3

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/exact_target_client/exact_target_soap_client.rb', line 3

def message
  @message
end

#request_idObject (readonly)

Returns the value of attribute request_id.



3
4
5
# File 'lib/exact_target_client/exact_target_soap_client.rb', line 3

def request_id
  @request_id
end

#result_keyObject (readonly)

Returns the value of attribute result_key.



3
4
5
# File 'lib/exact_target_client/exact_target_soap_client.rb', line 3

def result_key
  @result_key
end

#resultsObject (readonly)

Returns the value of attribute results.



3
4
5
# File 'lib/exact_target_client/exact_target_soap_client.rb', line 3

def results
  @results
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/exact_target_client/exact_target_soap_client.rb', line 14

def success?
  @success ||= false
end