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