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