Class: ConferenceCallService::GetRunningConferenceResponse

Inherits:
BasicResponse
  • Object
show all
Defined in:
lib/conference_call_service/get_running_conference_response.rb

Instance Attribute Summary collapse

Attributes inherited from BasicResponse

#error_code, #error_message

Instance Method Summary collapse

Methods inherited from BasicResponse

#inizialize, #raise_on_error, #to_s

Constructor Details

#initialize(response_xml, raise_exception_on_error = true) ⇒ GetRunningConferenceResponse

Constructor.

Parameters

response_xml

Xml as returned by the corresponding method call.

raise_exception_on_error

Raise an exception if an error occurs or not?



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/conference_call_service/get_running_conference_response.rb', line 11

def initialize(response_xml, raise_exception_on_error = true)

  @conference_ids = []
  doc = response_xml.document

  @error_code      = ConferenceCallService.xpath_query(doc, "statusCode").to_s
  @error_message   = ConferenceCallService.xpath_query(doc, "statusMessage").to_s
  @conference_id   = ConferenceCallService.xpath_query(doc, "conferenceId").to_s

  raise_on_error(response_xml) if raise_exception_on_error

end

Instance Attribute Details

#conference_idObject

Returns the value of attribute conference_id.



5
6
7
# File 'lib/conference_call_service/get_running_conference_response.rb', line 5

def conference_id
  @conference_id
end