freeclimb 5.1.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 +9 -0
- data/Gemfile +4 -5
- data/Gemfile.lock +18 -5
- data/README.md +4 -4
- data/Rakefile +1 -1
- data/docs/CreateConferenceRequest.md +1 -1
- data/docs/DefaultApi.md +1 -1
- 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 +27 -29
- 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 +28 -33
- 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 +135 -139
- 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 +28 -33
- 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 +28 -33
- data/lib/freeclimb/models/terminate_conference.rb +28 -33
- data/lib/freeclimb/models/tfn.rb +31 -35
- data/lib/freeclimb/models/tfn_campaign.rb +76 -79
- 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 +28 -33
- 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 -158
- data/openapi.json +3 -0
- data/package.json +1 -1
- data/spec/api/default_api_spec.rb +492 -676
- data/spec/api_client_spec.rb +100 -102
- data/spec/configuration_spec.rb +16 -18
- data/spec/models/account_request_spec.rb +104 -233
- data/spec/models/account_result_spec.rb +393 -1013
- data/spec/models/account_status_spec.rb +27 -30
- data/spec/models/account_type_spec.rb +24 -27
- data/spec/models/add_to_conference_notification_webhook_spec.rb +464 -1197
- data/spec/models/add_to_conference_spec.rb +354 -850
- data/spec/models/add_to_queue_notification_webhook_spec.rb +341 -864
- data/spec/models/answered_by_spec.rb +24 -27
- data/spec/models/application_list_spec.rb +289 -646
- data/spec/models/application_request_spec.rb +265 -679
- data/spec/models/application_result_spec.rb +444 -1184
- data/spec/models/available_number_list_spec.rb +289 -646
- data/spec/models/available_number_spec.rb +271 -650
- data/spec/models/barge_in_reason_spec.rb +27 -30
- data/spec/models/buy_incoming_number_request_spec.rb +136 -322
- data/spec/models/call_control_webhook_spec.rb +203 -503
- data/spec/models/call_direction_spec.rb +27 -30
- data/spec/models/call_ended_reason_spec.rb +107 -110
- data/spec/models/call_list_spec.rb +289 -646
- data/spec/models/call_result_spec.rb +679 -1778
- data/spec/models/call_status_spec.rb +47 -50
- data/spec/models/call_status_webhook_spec.rb +413 -990
- data/spec/models/capabilities_spec.rb +202 -411
- data/spec/models/completion_request_spec.rb +75 -143
- data/spec/models/completion_result_spec.rb +104 -231
- data/spec/models/completion_result_status_spec.rb +24 -27
- data/spec/models/conference_list_spec.rb +289 -646
- data/spec/models/conference_participant_list_spec.rb +289 -646
- data/spec/models/conference_participant_result_spec.rb +384 -938
- data/spec/models/conference_recording_status_webhook_spec.rb +464 -1197
- data/spec/models/conference_result_spec.rb +489 -1263
- data/spec/models/conference_status_spec.rb +31 -34
- data/spec/models/conference_status_webhook_spec.rb +464 -1197
- data/spec/models/create_conference_request_spec.rb +204 -485
- data/spec/models/create_conference_spec.rb +237 -557
- data/spec/models/create_conference_webhook_spec.rb +464 -1197
- data/spec/models/create_web_rtc_token_spec.rb +136 -307
- data/spec/models/dequeue_spec.rb +14 -17
- data/spec/models/dequeue_webhook_spec.rb +400 -1021
- data/spec/models/enqueue_spec.rb +169 -412
- data/spec/models/filter_logs_request_spec.rb +73 -145
- data/spec/models/get_digits_reason_spec.rb +31 -34
- data/spec/models/get_digits_spec.rb +326 -737
- data/spec/models/get_digits_webhook_spec.rb +435 -1127
- data/spec/models/get_speech_reason_spec.rb +39 -42
- data/spec/models/get_speech_spec.rb +399 -1036
- data/spec/models/get_speech_webhook_spec.rb +608 -1553
- data/spec/models/grammar_file_built_in_spec.rb +75 -78
- data/spec/models/grammar_type_spec.rb +24 -27
- data/spec/models/hangup_spec.rb +73 -145
- data/spec/models/if_machine_spec.rb +24 -27
- data/spec/models/inbound_call_webhook_spec.rb +371 -951
- data/spec/models/incoming_number_list_spec.rb +289 -646
- data/spec/models/incoming_number_request_spec.rb +136 -322
- data/spec/models/incoming_number_result_spec.rb +573 -1489
- data/spec/models/language_spec.rb +120 -123
- data/spec/models/leave_conference_webhook_spec.rb +341 -864
- data/spec/models/log_level_spec.rb +27 -30
- data/spec/models/log_list_spec.rb +289 -646
- data/spec/models/log_result_spec.rb +272 -667
- data/spec/models/machine_detected_webhook_spec.rb +401 -1036
- data/spec/models/machine_type_spec.rb +24 -27
- data/spec/models/make_call_request_spec.rb +353 -905
- data/spec/models/message_delivery_webhook_spec.rb +357 -942
- data/spec/models/message_direction_spec.rb +24 -27
- data/spec/models/message_request_spec.rb +324 -818
- data/spec/models/message_result_spec.rb +647 -1710
- data/spec/models/message_status_spec.rb +60 -63
- data/spec/models/message_status_webhook_spec.rb +405 -1045
- data/spec/models/messages_list_spec.rb +289 -646
- data/spec/models/mutable_resource_model_spec.rb +168 -395
- data/spec/models/out_dial_api_connect_webhook_spec.rb +371 -951
- data/spec/models/out_dial_connect_webhook_spec.rb +371 -951
- data/spec/models/out_dial_spec.rb +354 -903
- data/spec/models/out_dial_start_webhook_spec.rb +401 -1038
- data/spec/models/pagination_model_spec.rb +259 -577
- data/spec/models/park_spec.rb +136 -322
- data/spec/models/pause_spec.rb +72 -128
- data/spec/models/percl_command_spec.rb +76 -145
- data/spec/models/percl_script_spec.rb +73 -127
- data/spec/models/play_beep_spec.rb +31 -34
- data/spec/models/play_early_media_spec.rb +73 -145
- data/spec/models/play_spec.rb +135 -287
- data/spec/models/queue_list_spec.rb +289 -646
- data/spec/models/queue_member_list_spec.rb +289 -646
- data/spec/models/queue_member_spec.rb +199 -467
- data/spec/models/queue_request_spec.rb +103 -216
- data/spec/models/queue_result_spec.rb +388 -965
- data/spec/models/queue_result_status_spec.rb +31 -34
- data/spec/models/queue_wait_webhook_spec.rb +429 -1091
- data/spec/models/record_utterance_spec.rb +263 -591
- data/spec/models/record_utterance_term_reason_spec.rb +31 -34
- data/spec/models/record_webhook_spec.rb +605 -1548
- data/spec/models/recording_list_spec.rb +289 -646
- data/spec/models/recording_result_spec.rb +323 -819
- data/spec/models/redirect_spec.rb +73 -145
- data/spec/models/redirect_webhook_spec.rb +371 -951
- data/spec/models/reject_spec.rb +73 -145
- data/spec/models/remove_from_conference_spec.rb +14 -17
- data/spec/models/remove_from_queue_notification_webhook_spec.rb +404 -1023
- data/spec/models/request_type_spec.rb +107 -110
- data/spec/models/say_spec.rb +168 -377
- data/spec/models/send_digits_spec.rb +135 -287
- data/spec/models/set_dtmf_pass_through_spec.rb +74 -127
- data/spec/models/set_listen_spec.rb +74 -127
- data/spec/models/set_talk_spec.rb +74 -127
- data/spec/models/sms_spec.rb +169 -412
- data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +31 -34
- data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +35 -38
- data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +31 -34
- data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +35 -38
- data/spec/models/sms_ten_dlc_brand_spec.rb +1082 -2746
- data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +124 -127
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +289 -646
- data/spec/models/sms_ten_dlc_campaign_spec.rb +1139 -2881
- data/spec/models/sms_ten_dlc_campaign_status_spec.rb +24 -27
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +289 -646
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +406 -1004
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +961 -2393
- data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +24 -27
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +289 -646
- data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +35 -38
- data/spec/models/sms_toll_free_campaign_spec.rb +270 -666
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +289 -646
- data/spec/models/start_record_call_spec.rb +14 -17
- data/spec/models/terminate_conference_spec.rb +14 -17
- data/spec/models/tfn_campaign_spec.rb +330 -858
- data/spec/models/tfn_spec.rb +73 -145
- data/spec/models/transcribe_reason_spec.rb +35 -38
- data/spec/models/transcribe_term_reason_spec.rb +24 -27
- data/spec/models/transcribe_utterance_record_spec.rb +134 -270
- data/spec/models/transcribe_utterance_spec.rb +236 -523
- data/spec/models/transcribe_webhook_spec.rb +749 -1918
- data/spec/models/unpark_spec.rb +14 -17
- data/spec/models/update_call_request_spec.rb +74 -143
- data/spec/models/update_call_request_status_spec.rb +24 -27
- data/spec/models/update_conference_participant_request_spec.rb +137 -268
- data/spec/models/update_conference_request_spec.rb +140 -321
- data/spec/models/update_conference_request_status_spec.rb +24 -27
- data/spec/models/webhook_spec.rb +68 -137
- 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 +3 -151
@@ -1,18 +1,16 @@
|
|
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
|
-
Contact: support@freeclimb.com
|
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"
|
16
14
|
include Freeclimb
|
17
15
|
|
18
16
|
# Unit tests for Freeclimb::AddToConference
|
@@ -21,687 +19,361 @@ include Freeclimb
|
|
21
19
|
describe Freeclimb::AddToConference do
|
22
20
|
let(:instance) { Freeclimb::AddToConference.new }
|
23
21
|
|
24
|
-
describe
|
25
|
-
it
|
22
|
+
describe "test an instance of AddToConference" do
|
23
|
+
it "should create an instance of AddToConference" do
|
26
24
|
expect(instance).to be_instance_of(Freeclimb::AddToConference)
|
27
25
|
end
|
28
26
|
end
|
29
|
-
|
27
|
+
|
30
28
|
describe 'test attribute "allow_call_control"' do
|
31
|
-
it
|
29
|
+
it "should work" do
|
32
30
|
instance.allow_call_control = false
|
33
|
-
expect(instance.allow_call_control).to eq(false)
|
34
|
-
|
35
|
-
|
36
|
-
|
31
|
+
expect(instance.allow_call_control).to eq(false)
|
37
32
|
end
|
38
33
|
end
|
39
34
|
|
40
35
|
describe 'test attribute "call_control_sequence"' do
|
41
|
-
it
|
42
|
-
|
36
|
+
it "should work" do
|
43
37
|
instance.call_control_sequence = "TEST_STRING"
|
44
|
-
expect(instance.call_control_sequence).to eq("TEST_STRING")
|
45
|
-
|
46
|
-
|
47
|
-
|
38
|
+
expect(instance.call_control_sequence).to eq("TEST_STRING")
|
48
39
|
end
|
49
40
|
end
|
50
41
|
|
51
42
|
describe 'test attribute "call_control_url"' do
|
52
|
-
it
|
53
|
-
|
43
|
+
it "should work" do
|
54
44
|
instance.call_control_url = "TEST_STRING"
|
55
|
-
expect(instance.call_control_url).to eq("TEST_STRING")
|
56
|
-
|
57
|
-
|
58
|
-
|
45
|
+
expect(instance.call_control_url).to eq("TEST_STRING")
|
59
46
|
end
|
60
47
|
end
|
61
48
|
|
62
49
|
describe 'test attribute "conference_id"' do
|
63
|
-
it
|
64
|
-
|
50
|
+
it "should work" do
|
65
51
|
instance.conference_id = "TEST_STRING"
|
66
|
-
expect(instance.conference_id).to eq("TEST_STRING")
|
67
|
-
|
68
|
-
|
69
|
-
|
52
|
+
expect(instance.conference_id).to eq("TEST_STRING")
|
70
53
|
end
|
71
54
|
end
|
72
55
|
|
73
56
|
describe 'test attribute "leave_conference_url"' do
|
74
|
-
it
|
75
|
-
|
57
|
+
it "should work" do
|
76
58
|
instance.leave_conference_url = "TEST_STRING"
|
77
|
-
expect(instance.leave_conference_url).to eq("TEST_STRING")
|
78
|
-
|
79
|
-
|
80
|
-
|
59
|
+
expect(instance.leave_conference_url).to eq("TEST_STRING")
|
81
60
|
end
|
82
61
|
end
|
83
62
|
|
84
63
|
describe 'test attribute "listen"' do
|
85
|
-
it
|
64
|
+
it "should work" do
|
86
65
|
instance.listen = false
|
87
|
-
expect(instance.listen).to eq(false)
|
88
|
-
|
89
|
-
|
90
|
-
|
66
|
+
expect(instance.listen).to eq(false)
|
91
67
|
end
|
92
68
|
end
|
93
69
|
|
94
70
|
describe 'test attribute "notification_url"' do
|
95
|
-
it
|
96
|
-
|
71
|
+
it "should work" do
|
97
72
|
instance.notification_url = "TEST_STRING"
|
98
|
-
expect(instance.notification_url).to eq("TEST_STRING")
|
99
|
-
|
100
|
-
|
101
|
-
|
73
|
+
expect(instance.notification_url).to eq("TEST_STRING")
|
102
74
|
end
|
103
75
|
end
|
104
76
|
|
105
77
|
describe 'test attribute "start_conf_on_enter"' do
|
106
|
-
it
|
78
|
+
it "should work" do
|
107
79
|
instance.start_conf_on_enter = false
|
108
|
-
expect(instance.start_conf_on_enter).to eq(false)
|
109
|
-
|
110
|
-
|
111
|
-
|
80
|
+
expect(instance.start_conf_on_enter).to eq(false)
|
112
81
|
end
|
113
82
|
end
|
114
83
|
|
115
84
|
describe 'test attribute "talk"' do
|
116
|
-
it
|
85
|
+
it "should work" do
|
117
86
|
instance.talk = false
|
118
|
-
expect(instance.talk).to eq(false)
|
119
|
-
|
120
|
-
|
121
|
-
|
87
|
+
expect(instance.talk).to eq(false)
|
122
88
|
end
|
123
89
|
end
|
124
90
|
|
125
91
|
describe 'test attribute "dtmf_pass_through"' do
|
126
|
-
it
|
92
|
+
it "should work" do
|
127
93
|
instance.dtmf_pass_through = false
|
128
|
-
expect(instance.dtmf_pass_through).to eq(false)
|
129
|
-
|
130
|
-
|
131
|
-
|
94
|
+
expect(instance.dtmf_pass_through).to eq(false)
|
132
95
|
end
|
133
96
|
end
|
134
97
|
|
135
98
|
describe 'test method "initialize"' do
|
136
|
-
it
|
137
|
-
expect {
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
call_control_sequence: "TS",
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
call_control_url: "TS",
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
conference_id: "TS",
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
leave_conference_url: "TS",
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
listen: true,
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
notification_url: "TS",
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
start_conf_on_enter: true,
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
talk: true,
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
dtmf_pass_through: true,
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
)}.not_to raise_error()
|
184
|
-
end
|
185
|
-
it 'fails to initialize with input argument that is not a hash in Freeclimb::AddToConference' do
|
186
|
-
expect { instance = Freeclimb::AddToConference.new(
|
187
|
-
allow_call_control: true,
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
call_control_sequence: "TS",
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
call_control_url: "TS",
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
conference_id: "TS",
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
leave_conference_url: "TS",
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
listen: true,
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
notification_url: "TS",
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
start_conf_on_enter: true,
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
talk: true,
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
dtmf_pass_through: true,
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
invalid_attribute: true
|
233
|
-
)}.to raise_error(ArgumentError)
|
234
|
-
end
|
235
|
-
it 'fails to initialize with invalid attribute' do
|
236
|
-
expect { instance = Freeclimb::AddToConference.new(
|
237
|
-
allow_call_control: true,
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
call_control_sequence: "TS",
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
call_control_url: "TS",
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
conference_id: "TS",
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
leave_conference_url: "TS",
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
listen: true,
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
notification_url: "TS",
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
start_conf_on_enter: true,
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
talk: true,
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
dtmf_pass_through: true,
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
invalid_attribute: true
|
283
|
-
)}.to raise_error(ArgumentError)
|
284
|
-
end
|
285
|
-
end
|
286
|
-
|
287
|
-
describe 'test method "valid"' do
|
288
|
-
it 'checks if properties are valid' do
|
289
|
-
instance = Freeclimb::AddToConference.new(
|
99
|
+
it "properly initializes with values" do
|
100
|
+
expect {
|
101
|
+
Freeclimb::AddToConference.new(
|
290
102
|
allow_call_control: true,
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
103
|
+
|
295
104
|
call_control_sequence: "TS",
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
105
|
+
|
300
106
|
call_control_url: "TS",
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
107
|
+
|
305
108
|
conference_id: "TS",
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
109
|
+
|
310
110
|
leave_conference_url: "TS",
|
311
|
-
|
312
|
-
|
313
|
-
|
111
|
+
|
314
112
|
listen: true,
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
113
|
+
|
319
114
|
notification_url: "TS",
|
320
|
-
|
321
|
-
|
322
|
-
|
115
|
+
|
323
116
|
start_conf_on_enter: true,
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
talk: true,
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
dtmf_pass_through: true,
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
)
|
336
|
-
expect(instance.valid?).to eq(true)
|
337
|
-
end
|
338
117
|
|
118
|
+
talk: true,
|
339
119
|
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
)
|
344
|
-
expect(instance.valid?).to eq(false)
|
120
|
+
dtmf_pass_through: true
|
121
|
+
)
|
122
|
+
}.not_to raise_error
|
345
123
|
end
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
describe 'test method "eql?"' do
|
350
|
-
it 'checks if objects are equal' do
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
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(
|
362
127
|
allow_call_control: true,
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
128
|
+
|
367
129
|
call_control_sequence: "TS",
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
130
|
+
|
372
131
|
call_control_url: "TS",
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
132
|
+
|
377
133
|
conference_id: "TS",
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
134
|
+
|
382
135
|
leave_conference_url: "TS",
|
383
|
-
|
384
|
-
|
385
|
-
|
136
|
+
|
386
137
|
listen: true,
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
138
|
+
|
391
139
|
notification_url: "TS",
|
392
|
-
|
393
|
-
|
394
|
-
|
140
|
+
|
395
141
|
start_conf_on_enter: true,
|
396
|
-
|
397
|
-
|
398
|
-
|
142
|
+
|
399
143
|
talk: true,
|
400
|
-
|
401
|
-
|
402
|
-
|
144
|
+
|
403
145
|
dtmf_pass_through: true,
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
)
|
408
|
-
|
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(
|
409
154
|
allow_call_control: true,
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
155
|
+
|
414
156
|
call_control_sequence: "TS",
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
157
|
+
|
419
158
|
call_control_url: "TS",
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
159
|
+
|
424
160
|
conference_id: "TS",
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
161
|
+
|
429
162
|
leave_conference_url: "TS",
|
430
|
-
|
431
|
-
|
432
|
-
|
163
|
+
|
433
164
|
listen: true,
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
165
|
+
|
438
166
|
notification_url: "TS",
|
439
|
-
|
440
|
-
|
441
|
-
|
167
|
+
|
442
168
|
start_conf_on_enter: true,
|
443
|
-
|
444
|
-
|
445
|
-
|
169
|
+
|
446
170
|
talk: true,
|
447
|
-
|
448
|
-
|
449
|
-
|
171
|
+
|
450
172
|
dtmf_pass_through: true,
|
451
|
-
|
452
|
-
|
453
|
-
|
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
|
454
256
|
)
|
455
257
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
456
258
|
end
|
457
|
-
|
458
|
-
it
|
259
|
+
|
260
|
+
it "checks if objects are not equal" do
|
459
261
|
instance_1 = Freeclimb::AddToConference.new(
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
leave_conference_url: "TS",
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
listen: true,
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
notification_url: "TS",
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
start_conf_on_enter: true,
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
talk: true,
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
dtmf_pass_through: true,
|
502
|
-
|
503
|
-
|
504
|
-
|
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
|
505
281
|
)
|
506
282
|
instance_2 = Freeclimb::AddToConference.new(
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
leave_conference_url: "ST",
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
listen: false,
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
notification_url: "ST",
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
start_conf_on_enter: false,
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
talk: false,
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
dtmf_pass_through: false,
|
549
|
-
|
550
|
-
|
551
|
-
|
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
|
552
302
|
)
|
553
303
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
554
304
|
end
|
555
305
|
end
|
556
|
-
|
306
|
+
|
557
307
|
describe 'test method "hash"' do
|
558
|
-
it
|
308
|
+
it "calculates hash code" do
|
559
309
|
instance = Freeclimb::AddToConference.new(
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
leave_conference_url: "TS",
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
listen: true,
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
notification_url: "TS",
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
start_conf_on_enter: true,
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
talk: true,
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
dtmf_pass_through: true,
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
)
|
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
|
+
)
|
606
330
|
expect(instance.hash).to be_a_kind_of(Integer)
|
607
331
|
end
|
608
332
|
end
|
609
333
|
|
610
334
|
describe 'test method "build_from_hash"' do
|
611
|
-
it
|
335
|
+
it "builds equivalent model from hash code" do
|
612
336
|
instance_1 = Freeclimb::AddToConference.new(
|
613
337
|
allow_call_control: true,
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
338
|
+
|
618
339
|
call_control_sequence: "TS",
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
340
|
+
|
623
341
|
call_control_url: "TS",
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
342
|
+
|
628
343
|
conference_id: "TS",
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
344
|
+
|
633
345
|
leave_conference_url: "TS",
|
634
|
-
|
635
|
-
|
636
|
-
|
346
|
+
|
637
347
|
listen: true,
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
348
|
+
|
642
349
|
notification_url: "TS",
|
643
|
-
|
644
|
-
|
645
|
-
|
350
|
+
|
646
351
|
start_conf_on_enter: true,
|
647
|
-
|
648
|
-
|
649
|
-
|
352
|
+
|
650
353
|
talk: true,
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
dtmf_pass_through: true,
|
655
|
-
|
656
|
-
|
657
|
-
|
354
|
+
|
355
|
+
dtmf_pass_through: true
|
658
356
|
)
|
659
357
|
instance_2 = Freeclimb::AddToConference.new(
|
660
358
|
allow_call_control: true,
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
359
|
+
|
665
360
|
call_control_sequence: "TS",
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
361
|
+
|
670
362
|
call_control_url: "TS",
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
363
|
+
|
675
364
|
conference_id: "TS",
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
365
|
+
|
680
366
|
leave_conference_url: "TS",
|
681
|
-
|
682
|
-
|
683
|
-
|
367
|
+
|
684
368
|
listen: true,
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
369
|
+
|
689
370
|
notification_url: "TS",
|
690
|
-
|
691
|
-
|
692
|
-
|
371
|
+
|
693
372
|
start_conf_on_enter: true,
|
694
|
-
|
695
|
-
|
696
|
-
|
373
|
+
|
697
374
|
talk: true,
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
dtmf_pass_through: true,
|
702
|
-
|
703
|
-
|
704
|
-
|
375
|
+
|
376
|
+
dtmf_pass_through: true
|
705
377
|
)
|
706
378
|
|
707
379
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
@@ -710,312 +382,160 @@ describe Freeclimb::AddToConference do
|
|
710
382
|
|
711
383
|
describe 'test method "_deserialize"' do
|
712
384
|
instance = Freeclimb::AddToConference.new(
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
leave_conference_url: "TS",
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
listen: true,
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
notification_url: "TS",
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
start_conf_on_enter: true,
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
talk: true,
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
dtmf_pass_through: true,
|
755
|
-
|
756
|
-
|
757
|
-
|
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
|
758
404
|
)
|
759
|
-
|
760
|
-
|
761
|
-
it 'deserializes the data of allow_call_control' do
|
405
|
+
|
406
|
+
it "deserializes the data of allow_call_control" do
|
762
407
|
expect(instance._deserialize("Boolean", instance.allow_call_control)).to be_a_kind_of(TrueClass)
|
763
408
|
end
|
764
|
-
it
|
409
|
+
it "deserializes the data of call_control_sequence" do
|
765
410
|
expect(instance._deserialize("String", instance.call_control_sequence)).to be_a_kind_of(String)
|
766
411
|
end
|
767
|
-
|
768
|
-
|
769
|
-
it 'deserializes the data of call_control_url' do
|
412
|
+
|
413
|
+
it "deserializes the data of call_control_url" do
|
770
414
|
expect(instance._deserialize("String", instance.call_control_url)).to be_a_kind_of(String)
|
771
415
|
end
|
772
|
-
|
773
|
-
|
774
|
-
it 'deserializes the data of conference_id' do
|
416
|
+
|
417
|
+
it "deserializes the data of conference_id" do
|
775
418
|
expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String)
|
776
419
|
end
|
777
|
-
|
778
|
-
|
779
|
-
it 'deserializes the data of leave_conference_url' do
|
420
|
+
|
421
|
+
it "deserializes the data of leave_conference_url" do
|
780
422
|
expect(instance._deserialize("String", instance.leave_conference_url)).to be_a_kind_of(String)
|
781
423
|
end
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
it 'deserializes the data of listen' do
|
424
|
+
|
425
|
+
it "deserializes the data of listen" do
|
787
426
|
expect(instance._deserialize("Boolean", instance.listen)).to be_a_kind_of(TrueClass)
|
788
427
|
end
|
789
|
-
it
|
428
|
+
it "deserializes the data of notification_url" do
|
790
429
|
expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String)
|
791
430
|
end
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
it 'deserializes the data of start_conf_on_enter' do
|
431
|
+
|
432
|
+
it "deserializes the data of start_conf_on_enter" do
|
797
433
|
expect(instance._deserialize("Boolean", instance.start_conf_on_enter)).to be_a_kind_of(TrueClass)
|
798
434
|
end
|
799
|
-
|
800
|
-
|
801
|
-
it 'deserializes the data of talk' do
|
435
|
+
|
436
|
+
it "deserializes the data of talk" do
|
802
437
|
expect(instance._deserialize("Boolean", instance.talk)).to be_a_kind_of(TrueClass)
|
803
438
|
end
|
804
|
-
|
805
|
-
|
806
|
-
it 'deserializes the data of dtmf_pass_through' do
|
439
|
+
|
440
|
+
it "deserializes the data of dtmf_pass_through" do
|
807
441
|
expect(instance._deserialize("Boolean", instance.dtmf_pass_through)).to be_a_kind_of(TrueClass)
|
808
442
|
end
|
809
443
|
end
|
810
444
|
|
811
445
|
describe 'test method "to_s"' do
|
812
|
-
it
|
446
|
+
it "returns the string representation of the object" do
|
813
447
|
instance = Freeclimb::AddToConference.new(
|
814
448
|
allow_call_control: true,
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
449
|
+
|
819
450
|
call_control_sequence: "TS",
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
451
|
+
|
824
452
|
call_control_url: "TS",
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
453
|
+
|
829
454
|
conference_id: "TS",
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
455
|
+
|
834
456
|
leave_conference_url: "TS",
|
835
|
-
|
836
|
-
|
837
|
-
|
457
|
+
|
838
458
|
listen: true,
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
459
|
+
|
843
460
|
notification_url: "TS",
|
844
|
-
|
845
|
-
|
846
|
-
|
461
|
+
|
847
462
|
start_conf_on_enter: true,
|
848
|
-
|
849
|
-
|
850
|
-
|
463
|
+
|
851
464
|
talk: true,
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
dtmf_pass_through: true,
|
856
|
-
|
857
|
-
|
858
|
-
|
465
|
+
|
466
|
+
dtmf_pass_through: true
|
859
467
|
)
|
860
468
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
861
469
|
end
|
862
470
|
end
|
863
471
|
|
864
472
|
describe 'test method "to_hash"' do
|
865
|
-
it
|
473
|
+
it "returns the object in the form of hash" do
|
866
474
|
instance = Freeclimb::AddToConference.new(
|
867
475
|
allow_call_control: true,
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
476
|
+
|
872
477
|
call_control_sequence: "TS",
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
478
|
+
|
877
479
|
call_control_url: "TS",
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
480
|
+
|
882
481
|
conference_id: "TS",
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
482
|
+
|
887
483
|
leave_conference_url: "TS",
|
888
|
-
|
889
|
-
|
890
|
-
|
484
|
+
|
891
485
|
listen: true,
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
486
|
+
|
896
487
|
notification_url: "TS",
|
897
|
-
|
898
|
-
|
899
|
-
|
488
|
+
|
900
489
|
start_conf_on_enter: true,
|
901
|
-
|
902
|
-
|
903
|
-
|
490
|
+
|
904
491
|
talk: true,
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
dtmf_pass_through: true,
|
909
|
-
|
910
|
-
|
911
|
-
|
492
|
+
|
493
|
+
dtmf_pass_through: true
|
912
494
|
)
|
913
495
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
914
496
|
end
|
915
|
-
it
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
497
|
+
it "creates equal hash for two equal objects" do
|
926
498
|
instance_1 = Freeclimb::AddToConference.new(
|
927
499
|
allow_call_control: true,
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
500
|
+
|
932
501
|
call_control_sequence: "TS",
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
502
|
+
|
937
503
|
call_control_url: "TS",
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
504
|
+
|
942
505
|
conference_id: "TS",
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
506
|
+
|
947
507
|
leave_conference_url: "TS",
|
948
|
-
|
949
|
-
|
950
|
-
|
508
|
+
|
951
509
|
listen: true,
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
510
|
+
|
956
511
|
notification_url: "TS",
|
957
|
-
|
958
|
-
|
959
|
-
|
512
|
+
|
960
513
|
start_conf_on_enter: true,
|
961
|
-
|
962
|
-
|
963
|
-
|
514
|
+
|
964
515
|
talk: true,
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
dtmf_pass_through: true,
|
969
|
-
|
970
|
-
|
971
|
-
|
516
|
+
|
517
|
+
dtmf_pass_through: true
|
972
518
|
)
|
973
519
|
instance_2 = Freeclimb::AddToConference.new(
|
974
520
|
allow_call_control: true,
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
521
|
+
|
979
522
|
call_control_sequence: "TS",
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
523
|
+
|
984
524
|
call_control_url: "TS",
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
525
|
+
|
989
526
|
conference_id: "TS",
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
527
|
+
|
994
528
|
leave_conference_url: "TS",
|
995
|
-
|
996
|
-
|
997
|
-
|
529
|
+
|
998
530
|
listen: true,
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
531
|
+
|
1003
532
|
notification_url: "TS",
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
533
|
+
|
1007
534
|
start_conf_on_enter: true,
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
535
|
+
|
1011
536
|
talk: true,
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
dtmf_pass_through: true,
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
537
|
+
|
538
|
+
dtmf_pass_through: true
|
1019
539
|
)
|
1020
540
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
1021
541
|
end
|
@@ -1023,71 +543,55 @@ describe Freeclimb::AddToConference do
|
|
1023
543
|
|
1024
544
|
describe 'test method "_to_hash"' do
|
1025
545
|
instance = Freeclimb::AddToConference.new(
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
notification_url: "TS",
|
1050
|
-
|
1051
|
-
|
1052
|
-
start_conf_on_enter: true,
|
1053
|
-
|
1054
|
-
|
1055
|
-
talk: true,
|
1056
|
-
|
1057
|
-
|
1058
|
-
dtmf_pass_through: true,
|
1059
|
-
|
1060
|
-
)
|
1061
|
-
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
|
1062
567
|
expect(instance._to_hash(instance.allow_call_control)).to eq(instance.allow_call_control)
|
1063
568
|
end
|
1064
|
-
it
|
569
|
+
it "returns call_control_sequence in the form of hash" do
|
1065
570
|
expect(instance._to_hash(instance.call_control_sequence)).to eq(instance.call_control_sequence)
|
1066
571
|
end
|
1067
|
-
it
|
572
|
+
it "returns call_control_url in the form of hash" do
|
1068
573
|
expect(instance._to_hash(instance.call_control_url)).to eq(instance.call_control_url)
|
1069
574
|
end
|
1070
|
-
it
|
575
|
+
it "returns conference_id in the form of hash" do
|
1071
576
|
expect(instance._to_hash(instance.conference_id)).to eq(instance.conference_id)
|
1072
577
|
end
|
1073
|
-
it
|
578
|
+
it "returns leave_conference_url in the form of hash" do
|
1074
579
|
expect(instance._to_hash(instance.leave_conference_url)).to eq(instance.leave_conference_url)
|
1075
580
|
end
|
1076
|
-
it
|
581
|
+
it "returns listen in the form of hash" do
|
1077
582
|
expect(instance._to_hash(instance.listen)).to eq(instance.listen)
|
1078
583
|
end
|
1079
|
-
it
|
584
|
+
it "returns notification_url in the form of hash" do
|
1080
585
|
expect(instance._to_hash(instance.notification_url)).to eq(instance.notification_url)
|
1081
586
|
end
|
1082
|
-
it
|
587
|
+
it "returns start_conf_on_enter in the form of hash" do
|
1083
588
|
expect(instance._to_hash(instance.start_conf_on_enter)).to eq(instance.start_conf_on_enter)
|
1084
589
|
end
|
1085
|
-
it
|
590
|
+
it "returns talk in the form of hash" do
|
1086
591
|
expect(instance._to_hash(instance.talk)).to eq(instance.talk)
|
1087
592
|
end
|
1088
|
-
it
|
593
|
+
it "returns dtmf_pass_through in the form of hash" do
|
1089
594
|
expect(instance._to_hash(instance.dtmf_pass_through)).to eq(instance.dtmf_pass_through)
|
1090
595
|
end
|
1091
596
|
end
|
1092
|
-
|
1093
597
|
end
|