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