Class: ConferenceCallService::NewParticipantResponse
- Inherits:
-
BasicResponse
- Object
- BasicResponse
- ConferenceCallService::NewParticipantResponse
- Defined in:
- lib/conference_call_service/new_participant_response.rb
Instance Attribute Summary collapse
-
#participant_id ⇒ Object
Returns the value of attribute participant_id.
Attributes inherited from BasicResponse
Instance Method Summary collapse
-
#initialize(response_xml, raise_exception_on_error = true) ⇒ NewParticipantResponse
constructor
Constructor.
Methods inherited from BasicResponse
#inizialize, #raise_on_error, #to_s
Constructor Details
#initialize(response_xml, raise_exception_on_error = true) ⇒ NewParticipantResponse
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?
12 13 14 15 16 17 18 |
# File 'lib/conference_call_service/new_participant_response.rb', line 12 def initialize(response_xml, raise_exception_on_error = true) doc = response_xml.document @error_code = ConferenceCallService.xpath_query(doc, "statusCode").to_s @error_message = ConferenceCallService.xpath_query(doc, "statusMessage").to_s @participant_id = ConferenceCallService.xpath_query(doc, "participantId").to_s raise_on_error(response_xml) if raise_exception_on_error end |
Instance Attribute Details
#participant_id ⇒ Object
Returns the value of attribute participant_id.
6 7 8 |
# File 'lib/conference_call_service/new_participant_response.rb', line 6 def participant_id @participant_id end |