freeclimb 5.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -1
- data/Gemfile +4 -4
- data/Gemfile.lock +34 -15
- data/README.md +5 -4
- data/Rakefile +1 -1
- data/docs/CreateConferenceRequest.md +1 -1
- data/docs/DefaultApi.md +1 -1
- data/docs/MessageResult.md +7 -1
- data/docs/TFNCampaign.md +34 -0
- data/freeclimb.gemspec +21 -26
- data/lib/freeclimb/api/default_api.rb +878 -878
- data/lib/freeclimb/api_client.rb +78 -83
- data/lib/freeclimb/api_error.rb +17 -19
- data/lib/freeclimb/configuration.rb +28 -31
- data/lib/freeclimb/models/account_request.rb +36 -41
- data/lib/freeclimb/models/account_result.rb +88 -92
- data/lib/freeclimb/models/account_status.rb +12 -14
- data/lib/freeclimb/models/account_type.rb +12 -14
- data/lib/freeclimb/models/add_to_conference.rb +81 -85
- data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
- data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
- data/lib/freeclimb/models/answered_by.rb +12 -14
- data/lib/freeclimb/models/application_list.rb +74 -78
- data/lib/freeclimb/models/application_request.rb +66 -70
- data/lib/freeclimb/models/application_result.rb +100 -104
- data/lib/freeclimb/models/available_number.rb +66 -70
- data/lib/freeclimb/models/available_number_list.rb +74 -78
- data/lib/freeclimb/models/barge_in_reason.rb +12 -14
- data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
- data/lib/freeclimb/models/call_control_webhook.rb +56 -61
- data/lib/freeclimb/models/call_direction.rb +12 -14
- data/lib/freeclimb/models/call_ended_reason.rb +12 -14
- data/lib/freeclimb/models/call_list.rb +74 -78
- data/lib/freeclimb/models/call_result.rb +142 -146
- data/lib/freeclimb/models/call_status.rb +12 -14
- data/lib/freeclimb/models/call_status_webhook.rb +84 -88
- data/lib/freeclimb/models/capabilities.rb +55 -59
- data/lib/freeclimb/models/completion_request.rb +32 -36
- data/lib/freeclimb/models/completion_result.rb +36 -40
- data/lib/freeclimb/models/completion_result_status.rb +12 -14
- data/lib/freeclimb/models/conference_list.rb +74 -78
- data/lib/freeclimb/models/conference_participant_list.rb +74 -78
- data/lib/freeclimb/models/conference_participant_result.rb +88 -92
- data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
- data/lib/freeclimb/models/conference_result.rb +106 -110
- data/lib/freeclimb/models/conference_status.rb +12 -14
- data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
- data/lib/freeclimb/models/create_conference.rb +60 -63
- data/lib/freeclimb/models/create_conference_request.rb +55 -54
- data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
- data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
- data/lib/freeclimb/models/dequeue.rb +30 -37
- data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
- data/lib/freeclimb/models/enqueue.rb +48 -52
- data/lib/freeclimb/models/filter_logs_request.rb +31 -35
- data/lib/freeclimb/models/get_digits.rb +73 -77
- data/lib/freeclimb/models/get_digits_reason.rb +12 -14
- data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
- data/lib/freeclimb/models/get_speech.rb +94 -97
- data/lib/freeclimb/models/get_speech_reason.rb +12 -14
- data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
- data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
- data/lib/freeclimb/models/grammar_type.rb +12 -14
- data/lib/freeclimb/models/hangup.rb +34 -39
- data/lib/freeclimb/models/if_machine.rb +12 -14
- data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
- data/lib/freeclimb/models/incoming_number_list.rb +74 -78
- data/lib/freeclimb/models/incoming_number_request.rb +41 -45
- data/lib/freeclimb/models/incoming_number_result.rb +122 -126
- data/lib/freeclimb/models/language.rb +12 -14
- data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
- data/lib/freeclimb/models/log_level.rb +12 -14
- data/lib/freeclimb/models/log_list.rb +74 -78
- data/lib/freeclimb/models/log_result.rb +67 -71
- data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
- data/lib/freeclimb/models/machine_type.rb +12 -14
- data/lib/freeclimb/models/make_call_request.rb +77 -81
- data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
- data/lib/freeclimb/models/message_direction.rb +12 -14
- data/lib/freeclimb/models/message_request.rb +72 -75
- data/lib/freeclimb/models/message_result.rb +150 -123
- data/lib/freeclimb/models/message_status.rb +12 -14
- data/lib/freeclimb/models/message_status_webhook.rb +86 -90
- data/lib/freeclimb/models/messages_list.rb +74 -78
- data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
- data/lib/freeclimb/models/out_dial.rb +80 -84
- data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
- data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
- data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
- data/lib/freeclimb/models/pagination_model.rb +67 -71
- data/lib/freeclimb/models/park.rb +44 -48
- data/lib/freeclimb/models/pause.rb +33 -37
- data/lib/freeclimb/models/percl_command.rb +36 -40
- data/lib/freeclimb/models/percl_script.rb +32 -36
- data/lib/freeclimb/models/play.rb +44 -48
- data/lib/freeclimb/models/play_beep.rb +12 -14
- data/lib/freeclimb/models/play_early_media.rb +33 -37
- data/lib/freeclimb/models/queue_list.rb +74 -78
- data/lib/freeclimb/models/queue_member.rb +55 -59
- data/lib/freeclimb/models/queue_member_list.rb +74 -78
- data/lib/freeclimb/models/queue_request.rb +37 -42
- data/lib/freeclimb/models/queue_result.rb +88 -92
- data/lib/freeclimb/models/queue_result_status.rb +12 -14
- data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
- data/lib/freeclimb/models/record_utterance.rb +63 -67
- data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
- data/lib/freeclimb/models/record_webhook.rb +119 -123
- data/lib/freeclimb/models/recording_list.rb +74 -78
- data/lib/freeclimb/models/recording_result.rb +76 -80
- data/lib/freeclimb/models/redirect.rb +33 -37
- data/lib/freeclimb/models/redirect_webhook.rb +84 -88
- data/lib/freeclimb/models/reject.rb +34 -39
- data/lib/freeclimb/models/remove_from_conference.rb +30 -37
- data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
- data/lib/freeclimb/models/request_type.rb +12 -14
- data/lib/freeclimb/models/say.rb +49 -53
- data/lib/freeclimb/models/send_digits.rb +43 -47
- data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
- data/lib/freeclimb/models/set_listen.rb +34 -39
- data/lib/freeclimb/models/set_talk.rb +34 -39
- data/lib/freeclimb/models/sms.rb +48 -52
- data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
- data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
- data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
- data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
- data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/start_record_call.rb +30 -37
- data/lib/freeclimb/models/terminate_conference.rb +30 -37
- data/lib/freeclimb/models/tfn.rb +31 -35
- data/lib/freeclimb/models/tfn_campaign.rb +367 -0
- data/lib/freeclimb/models/transcribe_reason.rb +12 -14
- data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
- data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
- data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
- data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
- data/lib/freeclimb/models/unpark.rb +30 -37
- data/lib/freeclimb/models/update_call_request.rb +31 -35
- data/lib/freeclimb/models/update_call_request_status.rb +12 -14
- data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
- data/lib/freeclimb/models/update_conference_request.rb +41 -45
- data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
- data/lib/freeclimb/models/webhook.rb +32 -37
- data/lib/freeclimb/utils/request_verifier.rb +14 -14
- data/lib/freeclimb/utils/signature_information.rb +8 -8
- data/lib/freeclimb/version.rb +10 -12
- data/lib/freeclimb.rb +156 -157
- data/openapi.json +96 -38
- data/package.json +1 -1
- data/spec/api/default_api_spec.rb +531 -793
- data/spec/api_client_spec.rb +100 -102
- data/spec/configuration_spec.rb +16 -18
- data/spec/models/account_request_spec.rb +106 -124
- data/spec/models/account_result_spec.rb +396 -453
- data/spec/models/account_status_spec.rb +28 -30
- data/spec/models/account_type_spec.rb +25 -27
- data/spec/models/add_to_conference_notification_webhook_spec.rb +465 -549
- data/spec/models/add_to_conference_spec.rb +355 -382
- data/spec/models/add_to_queue_notification_webhook_spec.rb +342 -402
- data/spec/models/answered_by_spec.rb +25 -27
- data/spec/models/application_list_spec.rb +290 -326
- data/spec/models/application_request_spec.rb +266 -289
- data/spec/models/application_result_spec.rb +445 -476
- data/spec/models/available_number_list_spec.rb +290 -326
- data/spec/models/available_number_spec.rb +279 -299
- data/spec/models/barge_in_reason_spec.rb +28 -30
- data/spec/models/buy_incoming_number_request_spec.rb +137 -156
- data/spec/models/call_control_webhook_spec.rb +204 -225
- data/spec/models/call_direction_spec.rb +28 -30
- data/spec/models/call_ended_reason_spec.rb +108 -110
- data/spec/models/call_list_spec.rb +290 -326
- data/spec/models/call_result_spec.rb +684 -772
- data/spec/models/call_status_spec.rb +48 -50
- data/spec/models/call_status_webhook_spec.rb +414 -492
- data/spec/models/capabilities_spec.rb +203 -223
- data/spec/models/completion_request_spec.rb +76 -92
- data/spec/models/completion_result_spec.rb +107 -143
- data/spec/models/completion_result_status_spec.rb +25 -27
- data/spec/models/conference_list_spec.rb +290 -326
- data/spec/models/conference_participant_list_spec.rb +290 -326
- data/spec/models/conference_participant_result_spec.rb +385 -414
- data/spec/models/conference_recording_status_webhook_spec.rb +465 -549
- data/spec/models/conference_result_spec.rb +492 -553
- data/spec/models/conference_status_spec.rb +32 -34
- data/spec/models/conference_status_webhook_spec.rb +465 -549
- data/spec/models/create_conference_request_spec.rb +205 -245
- data/spec/models/create_conference_spec.rb +237 -278
- data/spec/models/create_conference_webhook_spec.rb +465 -549
- data/spec/models/create_web_rtc_token_spec.rb +137 -159
- data/spec/models/dequeue_spec.rb +15 -17
- data/spec/models/dequeue_webhook_spec.rb +401 -465
- data/spec/models/enqueue_spec.rb +170 -190
- data/spec/models/filter_logs_request_spec.rb +74 -91
- data/spec/models/get_digits_reason_spec.rb +32 -34
- data/spec/models/get_digits_spec.rb +327 -361
- data/spec/models/get_digits_webhook_spec.rb +436 -517
- data/spec/models/get_speech_reason_spec.rb +40 -42
- data/spec/models/get_speech_spec.rb +400 -492
- data/spec/models/get_speech_webhook_spec.rb +608 -698
- data/spec/models/grammar_file_built_in_spec.rb +76 -78
- data/spec/models/grammar_type_spec.rb +25 -27
- data/spec/models/hangup_spec.rb +74 -91
- data/spec/models/if_machine_spec.rb +25 -27
- data/spec/models/inbound_call_webhook_spec.rb +372 -433
- data/spec/models/incoming_number_list_spec.rb +290 -326
- data/spec/models/incoming_number_request_spec.rb +137 -156
- data/spec/models/incoming_number_result_spec.rb +584 -613
- data/spec/models/language_spec.rb +121 -123
- data/spec/models/leave_conference_webhook_spec.rb +342 -402
- data/spec/models/log_level_spec.rb +28 -30
- data/spec/models/log_list_spec.rb +290 -326
- data/spec/models/log_result_spec.rb +275 -311
- data/spec/models/machine_detected_webhook_spec.rb +402 -482
- data/spec/models/machine_type_spec.rb +25 -27
- data/spec/models/make_call_request_spec.rb +354 -383
- data/spec/models/message_delivery_webhook_spec.rb +358 -384
- data/spec/models/message_direction_spec.rb +25 -27
- data/spec/models/message_request_spec.rb +325 -352
- data/spec/models/message_result_spec.rb +674 -598
- data/spec/models/message_status_spec.rb +61 -63
- data/spec/models/message_status_webhook_spec.rb +406 -451
- data/spec/models/messages_list_spec.rb +290 -326
- data/spec/models/mutable_resource_model_spec.rb +169 -191
- data/spec/models/out_dial_api_connect_webhook_spec.rb +372 -433
- data/spec/models/out_dial_connect_webhook_spec.rb +372 -433
- data/spec/models/out_dial_spec.rb +355 -401
- data/spec/models/out_dial_start_webhook_spec.rb +402 -464
- data/spec/models/pagination_model_spec.rb +260 -295
- data/spec/models/park_spec.rb +137 -156
- data/spec/models/pause_spec.rb +73 -92
- data/spec/models/percl_command_spec.rb +77 -94
- data/spec/models/percl_script_spec.rb +74 -91
- data/spec/models/play_beep_spec.rb +32 -34
- data/spec/models/play_early_media_spec.rb +74 -91
- data/spec/models/play_spec.rb +136 -157
- data/spec/models/queue_list_spec.rb +290 -326
- data/spec/models/queue_member_list_spec.rb +290 -326
- data/spec/models/queue_member_spec.rb +200 -225
- data/spec/models/queue_request_spec.rb +105 -125
- data/spec/models/queue_result_spec.rb +391 -419
- data/spec/models/queue_result_status_spec.rb +32 -34
- data/spec/models/queue_wait_webhook_spec.rb +430 -497
- data/spec/models/record_utterance_spec.rb +264 -291
- data/spec/models/record_utterance_term_reason_spec.rb +32 -34
- data/spec/models/record_webhook_spec.rb +605 -693
- data/spec/models/recording_list_spec.rb +290 -326
- data/spec/models/recording_result_spec.rb +324 -353
- data/spec/models/redirect_spec.rb +74 -91
- data/spec/models/redirect_webhook_spec.rb +372 -433
- data/spec/models/reject_spec.rb +74 -91
- data/spec/models/remove_from_conference_spec.rb +15 -17
- data/spec/models/remove_from_queue_notification_webhook_spec.rb +405 -487
- data/spec/models/request_type_spec.rb +108 -110
- data/spec/models/say_spec.rb +169 -191
- data/spec/models/send_digits_spec.rb +136 -157
- data/spec/models/set_dtmf_pass_through_spec.rb +75 -91
- data/spec/models/set_listen_spec.rb +75 -91
- data/spec/models/set_talk_spec.rb +75 -91
- data/spec/models/sms_spec.rb +170 -190
- data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +32 -34
- data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +36 -38
- data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +32 -34
- data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +36 -38
- data/spec/models/sms_ten_dlc_brand_spec.rb +1083 -1201
- data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +125 -127
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +290 -326
- data/spec/models/sms_ten_dlc_campaign_spec.rb +1140 -1208
- data/spec/models/sms_ten_dlc_campaign_status_spec.rb +25 -27
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +290 -326
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +407 -425
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +965 -1015
- data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +25 -27
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +290 -326
- data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +36 -38
- data/spec/models/sms_toll_free_campaign_spec.rb +271 -314
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +290 -326
- data/spec/models/start_record_call_spec.rb +15 -17
- data/spec/models/terminate_conference_spec.rb +15 -17
- data/spec/models/tfn_campaign_spec.rb +561 -0
- data/spec/models/tfn_spec.rb +74 -91
- data/spec/models/transcribe_reason_spec.rb +36 -38
- data/spec/models/transcribe_term_reason_spec.rb +25 -27
- data/spec/models/transcribe_utterance_record_spec.rb +135 -158
- data/spec/models/transcribe_utterance_spec.rb +245 -265
- data/spec/models/transcribe_webhook_spec.rb +750 -874
- data/spec/models/unpark_spec.rb +15 -17
- data/spec/models/update_call_request_spec.rb +75 -109
- data/spec/models/update_call_request_status_spec.rb +25 -27
- data/spec/models/update_conference_participant_request_spec.rb +138 -156
- data/spec/models/update_conference_request_spec.rb +141 -195
- data/spec/models/update_conference_request_status_spec.rb +25 -27
- data/spec/models/webhook_spec.rb +69 -86
- data/spec/quickstart_spec.rb +5 -5
- data/spec/spec_helper.rb +92 -100
- data/spec/utils/request_verifier_spec.rb +70 -71
- data/spec/utils/signature_information_spec.rb +23 -23
- data/yarn.lock +9 -0
- metadata +9 -153
@@ -1,18 +1,17 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
# #FreeClimb API
|
2
|
+
#
|
3
|
+
# FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
4
|
+
#
|
5
|
+
# The version of the OpenAPI document: 1.0.0
|
6
|
+
# Contact: support@freeclimb.com
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# OpenAPI Generator version: 7.9.0
|
9
|
+
#
|
3
10
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.9.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
11
|
+
require "spec_helper"
|
12
|
+
require "json"
|
13
|
+
require "date"
|
14
|
+
include Freeclimb
|
16
15
|
|
17
16
|
# Unit tests for Freeclimb::AddToConference
|
18
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -20,378 +19,361 @@ require 'date'
|
|
20
19
|
describe Freeclimb::AddToConference do
|
21
20
|
let(:instance) { Freeclimb::AddToConference.new }
|
22
21
|
|
23
|
-
describe
|
24
|
-
it
|
22
|
+
describe "test an instance of AddToConference" do
|
23
|
+
it "should create an instance of AddToConference" do
|
25
24
|
expect(instance).to be_instance_of(Freeclimb::AddToConference)
|
26
25
|
end
|
27
26
|
end
|
28
|
-
|
27
|
+
|
29
28
|
describe 'test attribute "allow_call_control"' do
|
30
|
-
it
|
29
|
+
it "should work" do
|
31
30
|
instance.allow_call_control = false
|
32
|
-
expect(instance.allow_call_control).to eq(false)
|
33
|
-
|
31
|
+
expect(instance.allow_call_control).to eq(false)
|
34
32
|
end
|
35
33
|
end
|
36
34
|
|
37
35
|
describe 'test attribute "call_control_sequence"' do
|
38
|
-
it
|
36
|
+
it "should work" do
|
39
37
|
instance.call_control_sequence = "TEST_STRING"
|
40
|
-
expect(instance.call_control_sequence).to eq("TEST_STRING")
|
41
|
-
|
38
|
+
expect(instance.call_control_sequence).to eq("TEST_STRING")
|
42
39
|
end
|
43
40
|
end
|
44
41
|
|
45
42
|
describe 'test attribute "call_control_url"' do
|
46
|
-
it
|
43
|
+
it "should work" do
|
47
44
|
instance.call_control_url = "TEST_STRING"
|
48
|
-
expect(instance.call_control_url).to eq("TEST_STRING")
|
49
|
-
|
45
|
+
expect(instance.call_control_url).to eq("TEST_STRING")
|
50
46
|
end
|
51
47
|
end
|
52
48
|
|
53
49
|
describe 'test attribute "conference_id"' do
|
54
|
-
it
|
50
|
+
it "should work" do
|
55
51
|
instance.conference_id = "TEST_STRING"
|
56
|
-
expect(instance.conference_id).to eq("TEST_STRING")
|
57
|
-
|
52
|
+
expect(instance.conference_id).to eq("TEST_STRING")
|
58
53
|
end
|
59
54
|
end
|
60
55
|
|
61
56
|
describe 'test attribute "leave_conference_url"' do
|
62
|
-
it
|
57
|
+
it "should work" do
|
63
58
|
instance.leave_conference_url = "TEST_STRING"
|
64
|
-
expect(instance.leave_conference_url).to eq("TEST_STRING")
|
65
|
-
|
59
|
+
expect(instance.leave_conference_url).to eq("TEST_STRING")
|
66
60
|
end
|
67
61
|
end
|
68
62
|
|
69
63
|
describe 'test attribute "listen"' do
|
70
|
-
it
|
64
|
+
it "should work" do
|
71
65
|
instance.listen = false
|
72
|
-
expect(instance.listen).to eq(false)
|
73
|
-
|
66
|
+
expect(instance.listen).to eq(false)
|
74
67
|
end
|
75
68
|
end
|
76
69
|
|
77
70
|
describe 'test attribute "notification_url"' do
|
78
|
-
it
|
71
|
+
it "should work" do
|
79
72
|
instance.notification_url = "TEST_STRING"
|
80
|
-
expect(instance.notification_url).to eq("TEST_STRING")
|
81
|
-
|
73
|
+
expect(instance.notification_url).to eq("TEST_STRING")
|
82
74
|
end
|
83
75
|
end
|
84
76
|
|
85
77
|
describe 'test attribute "start_conf_on_enter"' do
|
86
|
-
it
|
78
|
+
it "should work" do
|
87
79
|
instance.start_conf_on_enter = false
|
88
|
-
expect(instance.start_conf_on_enter).to eq(false)
|
89
|
-
|
80
|
+
expect(instance.start_conf_on_enter).to eq(false)
|
90
81
|
end
|
91
82
|
end
|
92
83
|
|
93
84
|
describe 'test attribute "talk"' do
|
94
|
-
it
|
85
|
+
it "should work" do
|
95
86
|
instance.talk = false
|
96
|
-
expect(instance.talk).to eq(false)
|
97
|
-
|
87
|
+
expect(instance.talk).to eq(false)
|
98
88
|
end
|
99
89
|
end
|
100
90
|
|
101
91
|
describe 'test attribute "dtmf_pass_through"' do
|
102
|
-
it
|
92
|
+
it "should work" do
|
103
93
|
instance.dtmf_pass_through = false
|
104
|
-
expect(instance.dtmf_pass_through).to eq(false)
|
105
|
-
|
94
|
+
expect(instance.dtmf_pass_through).to eq(false)
|
106
95
|
end
|
107
96
|
end
|
108
97
|
|
109
98
|
describe 'test method "initialize"' do
|
110
|
-
it
|
111
|
-
expect {
|
112
|
-
|
113
|
-
|
114
|
-
call_control_sequence: "TS",
|
115
|
-
|
116
|
-
call_control_url: "TS",
|
117
|
-
|
118
|
-
conference_id: "TS",
|
119
|
-
|
120
|
-
leave_conference_url: "TS",
|
121
|
-
|
122
|
-
listen: true,
|
123
|
-
|
124
|
-
notification_url: "TS",
|
125
|
-
|
126
|
-
start_conf_on_enter: true,
|
127
|
-
|
128
|
-
talk: true,
|
129
|
-
|
130
|
-
dtmf_pass_through: true,
|
131
|
-
|
132
|
-
)}.not_to raise_error()
|
133
|
-
end
|
134
|
-
it 'fails to initialize with input argument that is not a hash in Freeclimb::AddToConference' do
|
135
|
-
expect { instance = Freeclimb::AddToConference.new(
|
136
|
-
allow_call_control: true,
|
137
|
-
|
138
|
-
call_control_sequence: "TS",
|
139
|
-
|
140
|
-
call_control_url: "TS",
|
141
|
-
|
142
|
-
conference_id: "TS",
|
143
|
-
|
144
|
-
leave_conference_url: "TS",
|
145
|
-
|
146
|
-
listen: true,
|
147
|
-
|
148
|
-
notification_url: "TS",
|
149
|
-
|
150
|
-
start_conf_on_enter: true,
|
151
|
-
|
152
|
-
talk: true,
|
153
|
-
|
154
|
-
dtmf_pass_through: true,
|
155
|
-
|
156
|
-
invalid_attribute: true
|
157
|
-
)}.to raise_error(ArgumentError)
|
158
|
-
end
|
159
|
-
it 'fails to initialize with invalid attribute' do
|
160
|
-
expect { instance = Freeclimb::AddToConference.new(
|
161
|
-
allow_call_control: true,
|
162
|
-
|
163
|
-
call_control_sequence: "TS",
|
164
|
-
|
165
|
-
call_control_url: "TS",
|
166
|
-
|
167
|
-
conference_id: "TS",
|
168
|
-
|
169
|
-
leave_conference_url: "TS",
|
170
|
-
|
171
|
-
listen: true,
|
172
|
-
|
173
|
-
notification_url: "TS",
|
174
|
-
|
175
|
-
start_conf_on_enter: true,
|
176
|
-
|
177
|
-
talk: true,
|
178
|
-
|
179
|
-
dtmf_pass_through: true,
|
180
|
-
|
181
|
-
invalid_attribute: true
|
182
|
-
)}.to raise_error(ArgumentError)
|
183
|
-
end
|
184
|
-
end
|
185
|
-
|
186
|
-
describe 'test method "valid"' do
|
187
|
-
it 'checks if properties are valid' do
|
188
|
-
instance = Freeclimb::AddToConference.new(
|
99
|
+
it "properly initializes with values" do
|
100
|
+
expect {
|
101
|
+
Freeclimb::AddToConference.new(
|
189
102
|
allow_call_control: true,
|
190
|
-
|
103
|
+
|
191
104
|
call_control_sequence: "TS",
|
192
|
-
|
105
|
+
|
193
106
|
call_control_url: "TS",
|
194
|
-
|
107
|
+
|
195
108
|
conference_id: "TS",
|
196
|
-
|
109
|
+
|
197
110
|
leave_conference_url: "TS",
|
198
|
-
|
111
|
+
|
199
112
|
listen: true,
|
200
|
-
|
113
|
+
|
201
114
|
notification_url: "TS",
|
202
|
-
|
115
|
+
|
203
116
|
start_conf_on_enter: true,
|
204
|
-
|
205
|
-
talk: true,
|
206
|
-
|
207
|
-
dtmf_pass_through: true,
|
208
|
-
|
209
|
-
)
|
210
|
-
expect(instance.valid?).to eq(true)
|
211
|
-
end
|
212
117
|
|
118
|
+
talk: true,
|
213
119
|
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
)
|
218
|
-
expect(instance.valid?).to eq(false)
|
120
|
+
dtmf_pass_through: true
|
121
|
+
)
|
122
|
+
}.not_to raise_error
|
219
123
|
end
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
describe 'test method "eql?"' do
|
224
|
-
it 'checks if objects are equal' do
|
225
|
-
obj = Object.new()
|
226
|
-
instance_1 = Freeclimb::AddToConference.new(
|
124
|
+
it "fails to initialize with input argument that is not a hash in Freeclimb::AddToConference" do
|
125
|
+
expect {
|
126
|
+
Freeclimb::AddToConference.new(
|
227
127
|
allow_call_control: true,
|
228
|
-
|
128
|
+
|
229
129
|
call_control_sequence: "TS",
|
230
|
-
|
130
|
+
|
231
131
|
call_control_url: "TS",
|
232
|
-
|
132
|
+
|
233
133
|
conference_id: "TS",
|
234
|
-
|
134
|
+
|
235
135
|
leave_conference_url: "TS",
|
236
|
-
|
136
|
+
|
237
137
|
listen: true,
|
238
|
-
|
138
|
+
|
239
139
|
notification_url: "TS",
|
240
|
-
|
140
|
+
|
241
141
|
start_conf_on_enter: true,
|
242
|
-
|
142
|
+
|
243
143
|
talk: true,
|
244
|
-
|
144
|
+
|
245
145
|
dtmf_pass_through: true,
|
246
|
-
|
247
|
-
|
248
|
-
|
146
|
+
|
147
|
+
invalid_attribute: true
|
148
|
+
)
|
149
|
+
}.to raise_error(ArgumentError)
|
150
|
+
end
|
151
|
+
it "fails to initialize with invalid attribute" do
|
152
|
+
expect {
|
153
|
+
Freeclimb::AddToConference.new(
|
249
154
|
allow_call_control: true,
|
250
|
-
|
155
|
+
|
251
156
|
call_control_sequence: "TS",
|
252
|
-
|
157
|
+
|
253
158
|
call_control_url: "TS",
|
254
|
-
|
159
|
+
|
255
160
|
conference_id: "TS",
|
256
|
-
|
161
|
+
|
257
162
|
leave_conference_url: "TS",
|
258
|
-
|
163
|
+
|
259
164
|
listen: true,
|
260
|
-
|
165
|
+
|
261
166
|
notification_url: "TS",
|
262
|
-
|
167
|
+
|
263
168
|
start_conf_on_enter: true,
|
264
|
-
|
169
|
+
|
265
170
|
talk: true,
|
266
|
-
|
171
|
+
|
267
172
|
dtmf_pass_through: true,
|
268
|
-
|
173
|
+
|
174
|
+
invalid_attribute: true
|
175
|
+
)
|
176
|
+
}.to raise_error(ArgumentError)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
describe 'test method "valid"' do
|
181
|
+
it "checks if properties are valid" do
|
182
|
+
instance = Freeclimb::AddToConference.new(
|
183
|
+
allow_call_control: true,
|
184
|
+
|
185
|
+
call_control_sequence: "TS",
|
186
|
+
|
187
|
+
call_control_url: "TS",
|
188
|
+
|
189
|
+
conference_id: "TS",
|
190
|
+
|
191
|
+
leave_conference_url: "TS",
|
192
|
+
|
193
|
+
listen: true,
|
194
|
+
|
195
|
+
notification_url: "TS",
|
196
|
+
|
197
|
+
start_conf_on_enter: true,
|
198
|
+
|
199
|
+
talk: true,
|
200
|
+
|
201
|
+
dtmf_pass_through: true
|
202
|
+
)
|
203
|
+
expect(instance.valid?).to eq(true)
|
204
|
+
end
|
205
|
+
|
206
|
+
skip "checks if properties are invalid" do
|
207
|
+
instance = Freeclimb::AddToConference.new
|
208
|
+
|
209
|
+
expect(instance.valid?).to eq(false)
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
describe 'test method "eql?"' do
|
214
|
+
it "checks if objects are equal" do
|
215
|
+
instance_1 = Freeclimb::AddToConference.new(
|
216
|
+
allow_call_control: true,
|
217
|
+
|
218
|
+
call_control_sequence: "TS",
|
219
|
+
|
220
|
+
call_control_url: "TS",
|
221
|
+
|
222
|
+
conference_id: "TS",
|
223
|
+
|
224
|
+
leave_conference_url: "TS",
|
225
|
+
|
226
|
+
listen: true,
|
227
|
+
|
228
|
+
notification_url: "TS",
|
229
|
+
|
230
|
+
start_conf_on_enter: true,
|
231
|
+
|
232
|
+
talk: true,
|
233
|
+
|
234
|
+
dtmf_pass_through: true
|
235
|
+
)
|
236
|
+
instance_2 = Freeclimb::AddToConference.new(
|
237
|
+
allow_call_control: true,
|
238
|
+
|
239
|
+
call_control_sequence: "TS",
|
240
|
+
|
241
|
+
call_control_url: "TS",
|
242
|
+
|
243
|
+
conference_id: "TS",
|
244
|
+
|
245
|
+
leave_conference_url: "TS",
|
246
|
+
|
247
|
+
listen: true,
|
248
|
+
|
249
|
+
notification_url: "TS",
|
250
|
+
|
251
|
+
start_conf_on_enter: true,
|
252
|
+
|
253
|
+
talk: true,
|
254
|
+
|
255
|
+
dtmf_pass_through: true
|
269
256
|
)
|
270
257
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
271
258
|
end
|
272
|
-
|
273
|
-
it
|
259
|
+
|
260
|
+
it "checks if objects are not equal" do
|
274
261
|
instance_1 = Freeclimb::AddToConference.new(
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
262
|
+
allow_call_control: true,
|
263
|
+
|
264
|
+
call_control_sequence: "TS",
|
265
|
+
|
266
|
+
call_control_url: "TS",
|
267
|
+
|
268
|
+
conference_id: "TS",
|
269
|
+
|
270
|
+
leave_conference_url: "TS",
|
271
|
+
|
272
|
+
listen: true,
|
273
|
+
|
274
|
+
notification_url: "TS",
|
275
|
+
|
276
|
+
start_conf_on_enter: true,
|
277
|
+
|
278
|
+
talk: true,
|
279
|
+
|
280
|
+
dtmf_pass_through: true
|
295
281
|
)
|
296
282
|
instance_2 = Freeclimb::AddToConference.new(
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
283
|
+
allow_call_control: false,
|
284
|
+
|
285
|
+
call_control_sequence: "ST",
|
286
|
+
|
287
|
+
call_control_url: "ST",
|
288
|
+
|
289
|
+
conference_id: "ST",
|
290
|
+
|
291
|
+
leave_conference_url: "ST",
|
292
|
+
|
293
|
+
listen: false,
|
294
|
+
|
295
|
+
notification_url: "ST",
|
296
|
+
|
297
|
+
start_conf_on_enter: false,
|
298
|
+
|
299
|
+
talk: false,
|
300
|
+
|
301
|
+
dtmf_pass_through: false
|
317
302
|
)
|
318
303
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
319
304
|
end
|
320
305
|
end
|
321
|
-
|
306
|
+
|
322
307
|
describe 'test method "hash"' do
|
323
|
-
it
|
308
|
+
it "calculates hash code" do
|
324
309
|
instance = Freeclimb::AddToConference.new(
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
)
|
310
|
+
allow_call_control: true,
|
311
|
+
|
312
|
+
call_control_sequence: "TS",
|
313
|
+
|
314
|
+
call_control_url: "TS",
|
315
|
+
|
316
|
+
conference_id: "TS",
|
317
|
+
|
318
|
+
leave_conference_url: "TS",
|
319
|
+
|
320
|
+
listen: true,
|
321
|
+
|
322
|
+
notification_url: "TS",
|
323
|
+
|
324
|
+
start_conf_on_enter: true,
|
325
|
+
|
326
|
+
talk: true,
|
327
|
+
|
328
|
+
dtmf_pass_through: true
|
329
|
+
)
|
346
330
|
expect(instance.hash).to be_a_kind_of(Integer)
|
347
331
|
end
|
348
332
|
end
|
349
333
|
|
350
334
|
describe 'test method "build_from_hash"' do
|
351
|
-
it
|
335
|
+
it "builds equivalent model from hash code" do
|
352
336
|
instance_1 = Freeclimb::AddToConference.new(
|
353
337
|
allow_call_control: true,
|
354
|
-
|
338
|
+
|
355
339
|
call_control_sequence: "TS",
|
356
|
-
|
340
|
+
|
357
341
|
call_control_url: "TS",
|
358
|
-
|
342
|
+
|
359
343
|
conference_id: "TS",
|
360
|
-
|
344
|
+
|
361
345
|
leave_conference_url: "TS",
|
362
|
-
|
346
|
+
|
363
347
|
listen: true,
|
364
|
-
|
348
|
+
|
365
349
|
notification_url: "TS",
|
366
|
-
|
350
|
+
|
367
351
|
start_conf_on_enter: true,
|
368
|
-
|
352
|
+
|
369
353
|
talk: true,
|
370
|
-
|
371
|
-
dtmf_pass_through: true
|
372
|
-
|
354
|
+
|
355
|
+
dtmf_pass_through: true
|
373
356
|
)
|
374
357
|
instance_2 = Freeclimb::AddToConference.new(
|
375
358
|
allow_call_control: true,
|
376
|
-
|
359
|
+
|
377
360
|
call_control_sequence: "TS",
|
378
|
-
|
361
|
+
|
379
362
|
call_control_url: "TS",
|
380
|
-
|
363
|
+
|
381
364
|
conference_id: "TS",
|
382
|
-
|
365
|
+
|
383
366
|
leave_conference_url: "TS",
|
384
|
-
|
367
|
+
|
385
368
|
listen: true,
|
386
|
-
|
369
|
+
|
387
370
|
notification_url: "TS",
|
388
|
-
|
371
|
+
|
389
372
|
start_conf_on_enter: true,
|
390
|
-
|
373
|
+
|
391
374
|
talk: true,
|
392
|
-
|
393
|
-
dtmf_pass_through: true
|
394
|
-
|
375
|
+
|
376
|
+
dtmf_pass_through: true
|
395
377
|
)
|
396
378
|
|
397
379
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
@@ -400,158 +382,160 @@ describe Freeclimb::AddToConference do
|
|
400
382
|
|
401
383
|
describe 'test method "_deserialize"' do
|
402
384
|
instance = Freeclimb::AddToConference.new(
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
385
|
+
allow_call_control: true,
|
386
|
+
|
387
|
+
call_control_sequence: "TS",
|
388
|
+
|
389
|
+
call_control_url: "TS",
|
390
|
+
|
391
|
+
conference_id: "TS",
|
392
|
+
|
393
|
+
leave_conference_url: "TS",
|
394
|
+
|
395
|
+
listen: true,
|
396
|
+
|
397
|
+
notification_url: "TS",
|
398
|
+
|
399
|
+
start_conf_on_enter: true,
|
400
|
+
|
401
|
+
talk: true,
|
402
|
+
|
403
|
+
dtmf_pass_through: true
|
423
404
|
)
|
424
|
-
|
405
|
+
|
406
|
+
it "deserializes the data of allow_call_control" do
|
425
407
|
expect(instance._deserialize("Boolean", instance.allow_call_control)).to be_a_kind_of(TrueClass)
|
426
408
|
end
|
427
|
-
it
|
409
|
+
it "deserializes the data of call_control_sequence" do
|
428
410
|
expect(instance._deserialize("String", instance.call_control_sequence)).to be_a_kind_of(String)
|
429
411
|
end
|
430
|
-
|
412
|
+
|
413
|
+
it "deserializes the data of call_control_url" do
|
431
414
|
expect(instance._deserialize("String", instance.call_control_url)).to be_a_kind_of(String)
|
432
415
|
end
|
433
|
-
|
416
|
+
|
417
|
+
it "deserializes the data of conference_id" do
|
434
418
|
expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String)
|
435
419
|
end
|
436
|
-
|
420
|
+
|
421
|
+
it "deserializes the data of leave_conference_url" do
|
437
422
|
expect(instance._deserialize("String", instance.leave_conference_url)).to be_a_kind_of(String)
|
438
423
|
end
|
439
|
-
|
424
|
+
|
425
|
+
it "deserializes the data of listen" do
|
440
426
|
expect(instance._deserialize("Boolean", instance.listen)).to be_a_kind_of(TrueClass)
|
441
427
|
end
|
442
|
-
it
|
428
|
+
it "deserializes the data of notification_url" do
|
443
429
|
expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String)
|
444
430
|
end
|
445
|
-
|
431
|
+
|
432
|
+
it "deserializes the data of start_conf_on_enter" do
|
446
433
|
expect(instance._deserialize("Boolean", instance.start_conf_on_enter)).to be_a_kind_of(TrueClass)
|
447
434
|
end
|
448
|
-
|
435
|
+
|
436
|
+
it "deserializes the data of talk" do
|
449
437
|
expect(instance._deserialize("Boolean", instance.talk)).to be_a_kind_of(TrueClass)
|
450
438
|
end
|
451
|
-
|
439
|
+
|
440
|
+
it "deserializes the data of dtmf_pass_through" do
|
452
441
|
expect(instance._deserialize("Boolean", instance.dtmf_pass_through)).to be_a_kind_of(TrueClass)
|
453
442
|
end
|
454
443
|
end
|
455
444
|
|
456
445
|
describe 'test method "to_s"' do
|
457
|
-
it
|
446
|
+
it "returns the string representation of the object" do
|
458
447
|
instance = Freeclimb::AddToConference.new(
|
459
448
|
allow_call_control: true,
|
460
|
-
|
449
|
+
|
461
450
|
call_control_sequence: "TS",
|
462
|
-
|
451
|
+
|
463
452
|
call_control_url: "TS",
|
464
|
-
|
453
|
+
|
465
454
|
conference_id: "TS",
|
466
|
-
|
455
|
+
|
467
456
|
leave_conference_url: "TS",
|
468
|
-
|
457
|
+
|
469
458
|
listen: true,
|
470
|
-
|
459
|
+
|
471
460
|
notification_url: "TS",
|
472
|
-
|
461
|
+
|
473
462
|
start_conf_on_enter: true,
|
474
|
-
|
463
|
+
|
475
464
|
talk: true,
|
476
|
-
|
477
|
-
dtmf_pass_through: true
|
478
|
-
|
465
|
+
|
466
|
+
dtmf_pass_through: true
|
479
467
|
)
|
480
468
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
481
469
|
end
|
482
470
|
end
|
483
471
|
|
484
472
|
describe 'test method "to_hash"' do
|
485
|
-
it
|
473
|
+
it "returns the object in the form of hash" do
|
486
474
|
instance = Freeclimb::AddToConference.new(
|
487
475
|
allow_call_control: true,
|
488
|
-
|
476
|
+
|
489
477
|
call_control_sequence: "TS",
|
490
|
-
|
478
|
+
|
491
479
|
call_control_url: "TS",
|
492
|
-
|
480
|
+
|
493
481
|
conference_id: "TS",
|
494
|
-
|
482
|
+
|
495
483
|
leave_conference_url: "TS",
|
496
|
-
|
484
|
+
|
497
485
|
listen: true,
|
498
|
-
|
486
|
+
|
499
487
|
notification_url: "TS",
|
500
|
-
|
488
|
+
|
501
489
|
start_conf_on_enter: true,
|
502
|
-
|
490
|
+
|
503
491
|
talk: true,
|
504
|
-
|
505
|
-
dtmf_pass_through: true
|
506
|
-
|
492
|
+
|
493
|
+
dtmf_pass_through: true
|
507
494
|
)
|
508
495
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
509
496
|
end
|
510
|
-
it
|
511
|
-
obj = Object.new()
|
497
|
+
it "creates equal hash for two equal objects" do
|
512
498
|
instance_1 = Freeclimb::AddToConference.new(
|
513
499
|
allow_call_control: true,
|
514
|
-
|
500
|
+
|
515
501
|
call_control_sequence: "TS",
|
516
|
-
|
502
|
+
|
517
503
|
call_control_url: "TS",
|
518
|
-
|
504
|
+
|
519
505
|
conference_id: "TS",
|
520
|
-
|
506
|
+
|
521
507
|
leave_conference_url: "TS",
|
522
|
-
|
508
|
+
|
523
509
|
listen: true,
|
524
|
-
|
510
|
+
|
525
511
|
notification_url: "TS",
|
526
|
-
|
512
|
+
|
527
513
|
start_conf_on_enter: true,
|
528
|
-
|
514
|
+
|
529
515
|
talk: true,
|
530
|
-
|
531
|
-
dtmf_pass_through: true
|
532
|
-
|
516
|
+
|
517
|
+
dtmf_pass_through: true
|
533
518
|
)
|
534
519
|
instance_2 = Freeclimb::AddToConference.new(
|
535
520
|
allow_call_control: true,
|
536
|
-
|
521
|
+
|
537
522
|
call_control_sequence: "TS",
|
538
|
-
|
523
|
+
|
539
524
|
call_control_url: "TS",
|
540
|
-
|
525
|
+
|
541
526
|
conference_id: "TS",
|
542
|
-
|
527
|
+
|
543
528
|
leave_conference_url: "TS",
|
544
|
-
|
529
|
+
|
545
530
|
listen: true,
|
546
|
-
|
531
|
+
|
547
532
|
notification_url: "TS",
|
548
|
-
|
533
|
+
|
549
534
|
start_conf_on_enter: true,
|
550
|
-
|
535
|
+
|
551
536
|
talk: true,
|
552
|
-
|
553
|
-
dtmf_pass_through: true
|
554
|
-
|
537
|
+
|
538
|
+
dtmf_pass_through: true
|
555
539
|
)
|
556
540
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
557
541
|
end
|
@@ -559,66 +543,55 @@ describe Freeclimb::AddToConference do
|
|
559
543
|
|
560
544
|
describe 'test method "_to_hash"' do
|
561
545
|
instance = Freeclimb::AddToConference.new(
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
start_conf_on_enter: true,
|
584
|
-
|
585
|
-
|
586
|
-
talk: true,
|
587
|
-
|
588
|
-
|
589
|
-
dtmf_pass_through: true,
|
590
|
-
|
591
|
-
)
|
592
|
-
it 'returns allow_call_control in the form of hash' do
|
546
|
+
allow_call_control: true,
|
547
|
+
|
548
|
+
call_control_sequence: "TS",
|
549
|
+
|
550
|
+
call_control_url: "TS",
|
551
|
+
|
552
|
+
conference_id: "TS",
|
553
|
+
|
554
|
+
leave_conference_url: "TS",
|
555
|
+
|
556
|
+
listen: true,
|
557
|
+
|
558
|
+
notification_url: "TS",
|
559
|
+
|
560
|
+
start_conf_on_enter: true,
|
561
|
+
|
562
|
+
talk: true,
|
563
|
+
|
564
|
+
dtmf_pass_through: true
|
565
|
+
)
|
566
|
+
it "returns allow_call_control in the form of hash" do
|
593
567
|
expect(instance._to_hash(instance.allow_call_control)).to eq(instance.allow_call_control)
|
594
568
|
end
|
595
|
-
it
|
569
|
+
it "returns call_control_sequence in the form of hash" do
|
596
570
|
expect(instance._to_hash(instance.call_control_sequence)).to eq(instance.call_control_sequence)
|
597
571
|
end
|
598
|
-
it
|
572
|
+
it "returns call_control_url in the form of hash" do
|
599
573
|
expect(instance._to_hash(instance.call_control_url)).to eq(instance.call_control_url)
|
600
574
|
end
|
601
|
-
it
|
575
|
+
it "returns conference_id in the form of hash" do
|
602
576
|
expect(instance._to_hash(instance.conference_id)).to eq(instance.conference_id)
|
603
577
|
end
|
604
|
-
it
|
578
|
+
it "returns leave_conference_url in the form of hash" do
|
605
579
|
expect(instance._to_hash(instance.leave_conference_url)).to eq(instance.leave_conference_url)
|
606
580
|
end
|
607
|
-
it
|
581
|
+
it "returns listen in the form of hash" do
|
608
582
|
expect(instance._to_hash(instance.listen)).to eq(instance.listen)
|
609
583
|
end
|
610
|
-
it
|
584
|
+
it "returns notification_url in the form of hash" do
|
611
585
|
expect(instance._to_hash(instance.notification_url)).to eq(instance.notification_url)
|
612
586
|
end
|
613
|
-
it
|
587
|
+
it "returns start_conf_on_enter in the form of hash" do
|
614
588
|
expect(instance._to_hash(instance.start_conf_on_enter)).to eq(instance.start_conf_on_enter)
|
615
589
|
end
|
616
|
-
it
|
590
|
+
it "returns talk in the form of hash" do
|
617
591
|
expect(instance._to_hash(instance.talk)).to eq(instance.talk)
|
618
592
|
end
|
619
|
-
it
|
593
|
+
it "returns dtmf_pass_through in the form of hash" do
|
620
594
|
expect(instance._to_hash(instance.dtmf_pass_through)).to eq(instance.dtmf_pass_through)
|
621
595
|
end
|
622
596
|
end
|
623
|
-
|
624
597
|
end
|