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