freeclimb 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +82 -0
- data/README.md +238 -0
- data/Rakefile +10 -0
- data/docs/AccountRequest.md +21 -0
- data/docs/AccountResult.md +37 -0
- data/docs/AccountResultAllOf.md +29 -0
- data/docs/ApplicationList.md +31 -0
- data/docs/ApplicationListAllOf.md +17 -0
- data/docs/ApplicationRequest.md +31 -0
- data/docs/ApplicationResult.md +41 -0
- data/docs/ApplicationResultAllOf.md +33 -0
- data/docs/AvailableNumber.md +27 -0
- data/docs/AvailableNumberList.md +31 -0
- data/docs/AvailableNumberListAllOf.md +17 -0
- data/docs/BuyIncomingNumberRequest.md +23 -0
- data/docs/CallList.md +31 -0
- data/docs/CallListAllOf.md +17 -0
- data/docs/CallResult.md +53 -0
- data/docs/CallResultAllOf.md +45 -0
- data/docs/ConferenceList.md +31 -0
- data/docs/ConferenceListAllOf.md +17 -0
- data/docs/ConferenceParticipantList.md +31 -0
- data/docs/ConferenceParticipantListAllOf.md +17 -0
- data/docs/ConferenceParticipantResult.md +35 -0
- data/docs/ConferenceParticipantResultAllOf.md +27 -0
- data/docs/ConferenceResult.md +43 -0
- data/docs/ConferenceResultAllOf.md +35 -0
- data/docs/CreateConferenceRequest.md +27 -0
- data/docs/DefaultApi.md +2504 -0
- data/docs/DequeueMemberRequest.md +17 -0
- data/docs/FilterLogsRequest.md +19 -0
- data/docs/IncomingNumberList.md +31 -0
- data/docs/IncomingNumberListAllOf.md +17 -0
- data/docs/IncomingNumberRequest.md +21 -0
- data/docs/IncomingNumberResult.md +41 -0
- data/docs/IncomingNumberResultAllOf.md +33 -0
- data/docs/LogList.md +31 -0
- data/docs/LogListAllOf.md +17 -0
- data/docs/LogResult.md +29 -0
- data/docs/MakeCallRequest.md +33 -0
- data/docs/MessageRequest.md +35 -0
- data/docs/MessageRequestAllOf.md +27 -0
- data/docs/MessageResult.md +39 -0
- data/docs/MessageResultAllOf.md +31 -0
- data/docs/MessagesList.md +31 -0
- data/docs/MessagesListAllOf.md +17 -0
- data/docs/MutableResourceModel.md +23 -0
- data/docs/PaginationModel.md +29 -0
- data/docs/Percl.md +697 -0
- data/docs/QueueList.md +31 -0
- data/docs/QueueListAllOf.md +17 -0
- data/docs/QueueMember.md +25 -0
- data/docs/QueueMemberList.md +31 -0
- data/docs/QueueMemberListAllOf.md +17 -0
- data/docs/QueueRequest.md +21 -0
- data/docs/QueueResult.md +37 -0
- data/docs/QueueResultAllOf.md +29 -0
- data/docs/RecordingList.md +31 -0
- data/docs/RecordingListAllOf.md +17 -0
- data/docs/RecordingResult.md +33 -0
- data/docs/RecordingResultAllOf.md +25 -0
- data/docs/UpdateCallRequest.md +19 -0
- data/docs/UpdateConferenceParticipantRequest.md +21 -0
- data/docs/UpdateConferenceRequest.md +23 -0
- data/freeclimb.gemspec +39 -0
- data/git_push.sh +58 -0
- data/lib/freeclimb.rb +99 -0
- data/lib/freeclimb/api/default_api.rb +2845 -0
- data/lib/freeclimb/api_client.rb +386 -0
- data/lib/freeclimb/api_error.rb +57 -0
- data/lib/freeclimb/configuration.rb +248 -0
- data/lib/freeclimb/models/account_request.rb +227 -0
- data/lib/freeclimb/models/account_result.rb +349 -0
- data/lib/freeclimb/models/account_result_all_of.rb +301 -0
- data/lib/freeclimb/models/application_list.rb +286 -0
- data/lib/freeclimb/models/application_list_all_of.rb +208 -0
- data/lib/freeclimb/models/application_request.rb +277 -0
- data/lib/freeclimb/models/application_result.rb +335 -0
- data/lib/freeclimb/models/application_result_all_of.rb +287 -0
- data/lib/freeclimb/models/available_number.rb +257 -0
- data/lib/freeclimb/models/available_number_list.rb +286 -0
- data/lib/freeclimb/models/available_number_list_all_of.rb +208 -0
- data/lib/freeclimb/models/buy_incoming_number_request.rb +242 -0
- data/lib/freeclimb/models/call_list.rb +286 -0
- data/lib/freeclimb/models/call_list_all_of.rb +208 -0
- data/lib/freeclimb/models/call_result.rb +429 -0
- data/lib/freeclimb/models/call_result_all_of.rb +381 -0
- data/lib/freeclimb/models/conference_list.rb +286 -0
- data/lib/freeclimb/models/conference_list_all_of.rb +208 -0
- data/lib/freeclimb/models/conference_participant_list.rb +286 -0
- data/lib/freeclimb/models/conference_participant_list_all_of.rb +208 -0
- data/lib/freeclimb/models/conference_participant_result.rb +305 -0
- data/lib/freeclimb/models/conference_participant_result_all_of.rb +257 -0
- data/lib/freeclimb/models/conference_result.rb +391 -0
- data/lib/freeclimb/models/conference_result_all_of.rb +343 -0
- data/lib/freeclimb/models/create_conference_request.rb +293 -0
- data/lib/freeclimb/models/dequeue_member_request.rb +207 -0
- data/lib/freeclimb/models/filter_logs_request.rb +222 -0
- data/lib/freeclimb/models/incoming_number_list.rb +286 -0
- data/lib/freeclimb/models/incoming_number_list_all_of.rb +208 -0
- data/lib/freeclimb/models/incoming_number_request.rb +227 -0
- data/lib/freeclimb/models/incoming_number_result.rb +335 -0
- data/lib/freeclimb/models/incoming_number_result_all_of.rb +287 -0
- data/lib/freeclimb/models/log_list.rb +286 -0
- data/lib/freeclimb/models/log_list_all_of.rb +208 -0
- data/lib/freeclimb/models/log_result.rb +301 -0
- data/lib/freeclimb/models/make_call_request.rb +302 -0
- data/lib/freeclimb/models/message_request.rb +320 -0
- data/lib/freeclimb/models/message_request_all_of.rb +272 -0
- data/lib/freeclimb/models/message_result.rb +359 -0
- data/lib/freeclimb/models/message_result_all_of.rb +311 -0
- data/lib/freeclimb/models/messages_list.rb +287 -0
- data/lib/freeclimb/models/messages_list_all_of.rb +209 -0
- data/lib/freeclimb/models/mutable_resource_model.rb +237 -0
- data/lib/freeclimb/models/pagination_model.rb +267 -0
- data/lib/freeclimb/models/queue_list.rb +286 -0
- data/lib/freeclimb/models/queue_list_all_of.rb +208 -0
- data/lib/freeclimb/models/queue_member.rb +247 -0
- data/lib/freeclimb/models/queue_member_list.rb +286 -0
- data/lib/freeclimb/models/queue_member_list_all_of.rb +208 -0
- data/lib/freeclimb/models/queue_request.rb +227 -0
- data/lib/freeclimb/models/queue_result.rb +315 -0
- data/lib/freeclimb/models/queue_result_all_of.rb +267 -0
- data/lib/freeclimb/models/recording_list.rb +286 -0
- data/lib/freeclimb/models/recording_list_all_of.rb +208 -0
- data/lib/freeclimb/models/recording_result.rb +295 -0
- data/lib/freeclimb/models/recording_result_all_of.rb +247 -0
- data/lib/freeclimb/models/update_call_request.rb +256 -0
- data/lib/freeclimb/models/update_conference_participant_request.rb +227 -0
- data/lib/freeclimb/models/update_conference_request.rb +273 -0
- data/lib/freeclimb/version.rb +15 -0
- data/lib/percl/calls.rb +43 -0
- data/lib/percl/conference_participants.rb +40 -0
- data/lib/percl/conferences.rb +21 -0
- data/lib/percl/ivr.rb +63 -0
- data/lib/percl/jsonable.rb +23 -0
- data/lib/percl/percl.rb +29 -0
- data/lib/percl/queue_members.rb +15 -0
- data/lib/percl/recordings.rb +15 -0
- data/lib/percl/sms.rb +11 -0
- data/spec/api/default_api_spec.rb +1151 -0
- data/spec/api/web_mocks.rb +473 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +34 -0
- data/spec/models/account_request_spec.rb +33 -0
- data/spec/models/account_result_spec.rb +33 -0
- data/spec/models/application_list_spec.rb +33 -0
- data/spec/models/application_request_spec.rb +33 -0
- data/spec/models/application_result_spec.rb +33 -0
- data/spec/models/available_number_list_spec.rb +34 -0
- data/spec/models/available_number_spec.rb +33 -0
- data/spec/models/buy_incoming_number_request_spec.rb +33 -0
- data/spec/models/call_list_spec.rb +34 -0
- data/spec/models/call_result_spec.rb +34 -0
- data/spec/models/conference_list_spec.rb +33 -0
- data/spec/models/conference_participant_list_spec.rb +33 -0
- data/spec/models/conference_participant_result_spec.rb +33 -0
- data/spec/models/conference_result_spec.rb +34 -0
- data/spec/models/create_conference_request_spec.rb +34 -0
- data/spec/models/dequeue_member_request_spec.rb +34 -0
- data/spec/models/filter_logs_request_spec.rb +33 -0
- data/spec/models/incoming_number_list_spec.rb +34 -0
- data/spec/models/incoming_number_request_spec.rb +33 -0
- data/spec/models/incoming_number_result_spec.rb +34 -0
- data/spec/models/log_list_spec.rb +33 -0
- data/spec/models/log_result_spec.rb +33 -0
- data/spec/models/make_call_request_spec.rb +33 -0
- data/spec/models/message_request_spec.rb +34 -0
- data/spec/models/message_result_spec.rb +33 -0
- data/spec/models/messages_list_spec.rb +33 -0
- data/spec/models/mutable_resource_model_spec.rb +34 -0
- data/spec/models/pagination_model_spec.rb +33 -0
- data/spec/models/queue_list_spec.rb +34 -0
- data/spec/models/queue_member_list_spec.rb +33 -0
- data/spec/models/queue_member_spec.rb +34 -0
- data/spec/models/queue_request_spec.rb +34 -0
- data/spec/models/queue_result_spec.rb +33 -0
- data/spec/models/recording_list_spec.rb +33 -0
- data/spec/models/recording_result_spec.rb +33 -0
- data/spec/models/update_call_request_spec.rb +33 -0
- data/spec/models/update_conference_participant_request_spec.rb +33 -0
- data/spec/models/update_conference_request_spec.rb +33 -0
- data/spec/percl/calls_spec.rb +111 -0
- data/spec/percl/conference_participant_spec.rb +96 -0
- data/spec/percl/conference_spec.rb +46 -0
- data/spec/percl/ivr_spec.rb +155 -0
- data/spec/percl/jsonable_spec.rb +28 -0
- data/spec/percl/percl_spec.rb +31 -0
- data/spec/percl/queue_members_spec.rb +35 -0
- data/spec/percl/recordings_spec.rb +32 -0
- data/spec/percl/sms_spec.rb +29 -0
- data/spec/spec_helper.rb +114 -0
- metadata +355 -0
@@ -0,0 +1,33 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Freeclimb::QueueResult
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'QueueResult' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = Freeclimb::QueueResult.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'should create an instance of QueueResult' do
|
31
|
+
expect(@instance).to be_instance_of(Freeclimb::QueueResult)
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Freeclimb::RecordingList
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'RecordingList' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = Freeclimb::RecordingList.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'should create an instance of RecordingList' do
|
31
|
+
expect(@instance).to be_instance_of(Freeclimb::RecordingList)
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Freeclimb::RecordingResult
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'RecordingResult' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = Freeclimb::RecordingResult.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'should create an instance of RecordingResult' do
|
31
|
+
expect(@instance).to be_instance_of(Freeclimb::RecordingResult)
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Freeclimb::UpdateCallRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'UpdateCallRequest' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = Freeclimb::UpdateCallRequest.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'should create an instance of UpdateCallRequest' do
|
31
|
+
expect(@instance).to be_instance_of(Freeclimb::UpdateCallRequest)
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Freeclimb::UpdateConferenceParticipantRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'UpdateConferenceParticipantRequest' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = Freeclimb::UpdateConferenceParticipantRequest.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'should create an instance of UpdateConferenceParticipantRequest' do
|
31
|
+
expect(@instance).to be_instance_of(Freeclimb::UpdateConferenceParticipantRequest)
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Freeclimb::UpdateConferenceRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'UpdateConferenceRequest' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = Freeclimb::UpdateConferenceRequest.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'should create an instance of UpdateConferenceRequest' do
|
31
|
+
expect(@instance).to be_instance_of(Freeclimb::UpdateConferenceRequest)
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'calls' do
|
4
|
+
describe 'OutDial' do
|
5
|
+
describe 'initialize' do
|
6
|
+
before do
|
7
|
+
@instance = Percl::OutDial.new('MOCK_ACTION_URL', 'MOCK_CALL_CONNECT_URL', 'MOCK_CALLING_NUMBER', 'MOCK_DESTINATION')
|
8
|
+
end
|
9
|
+
it 'should set actionUrl' do
|
10
|
+
actionUrl = @instance.instance_variable_get :@actionUrl
|
11
|
+
expect(actionUrl).to eq('MOCK_ACTION_URL')
|
12
|
+
end
|
13
|
+
it 'should set callConnectUrl' do
|
14
|
+
callConnectUrl = @instance.instance_variable_get :@callConnectUrl
|
15
|
+
expect(callConnectUrl).to eq('MOCK_CALL_CONNECT_URL')
|
16
|
+
end
|
17
|
+
it 'should set callingNumber' do
|
18
|
+
callingNumber = @instance.instance_variable_get :@callingNumber
|
19
|
+
expect(callingNumber).to eq('MOCK_CALLING_NUMBER')
|
20
|
+
end
|
21
|
+
it 'should set destinationNumber' do
|
22
|
+
destination = @instance.instance_variable_get :@destination
|
23
|
+
expect(destination).to eq('MOCK_DESTINATION')
|
24
|
+
end
|
25
|
+
end
|
26
|
+
describe 'instance variables' do
|
27
|
+
before do
|
28
|
+
@instance = Percl::OutDial.new('MOCK_ACTION_URL', 'MOCK_CALL_CONNECT_URL', 'MOCK_CALLING_NUMBER', 'MOCK_DESTINATION')
|
29
|
+
end
|
30
|
+
it 'should have ifMachine' do
|
31
|
+
expect(@instance).to respond_to(:ifMachine)
|
32
|
+
end
|
33
|
+
it 'should have ifMachineUrl' do
|
34
|
+
expect(@instance).to respond_to(:ifMachineUrl)
|
35
|
+
end
|
36
|
+
it 'should have sendDigits' do
|
37
|
+
expect(@instance).to respond_to(:sendDigits)
|
38
|
+
end
|
39
|
+
it 'should have statusCallbackUrl' do
|
40
|
+
expect(@instance).to respond_to(:statusCallbackUrl)
|
41
|
+
end
|
42
|
+
it 'should have timeout' do
|
43
|
+
expect(@instance).to respond_to(:timeout)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
describe 'Hangup' do
|
48
|
+
describe 'instance variables' do
|
49
|
+
before do
|
50
|
+
@instance = Percl::Hangup.new
|
51
|
+
end
|
52
|
+
it 'should have callId' do
|
53
|
+
expect(@instance).to respond_to(:callId)
|
54
|
+
end
|
55
|
+
it 'should have reason' do
|
56
|
+
expect(@instance).to respond_to(:reason)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
describe 'Pause' do
|
61
|
+
describe 'initialize' do
|
62
|
+
before do
|
63
|
+
@instance = Percl::Pause.new(10)
|
64
|
+
end
|
65
|
+
it 'should set length' do
|
66
|
+
actual = @instance.instance_variable_get :@length
|
67
|
+
expect(actual).to eq(10)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
describe 'Redirect' do
|
72
|
+
describe 'initialize' do
|
73
|
+
before do
|
74
|
+
@instance = Percl::Redirect.new('MOCK_ACTION_URL')
|
75
|
+
end
|
76
|
+
it 'should set actionUrl' do
|
77
|
+
url = @instance.instance_variable_get :@actionUrl
|
78
|
+
expect(url).to eq('MOCK_ACTION_URL')
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
describe 'SendDigits' do
|
83
|
+
describe 'initialize' do
|
84
|
+
before do
|
85
|
+
@instance = Percl::SendDigits.new('1234')
|
86
|
+
end
|
87
|
+
it 'should set actionUrl' do
|
88
|
+
digits = @instance.instance_variable_get :@digits
|
89
|
+
expect(digits).to eq('1234')
|
90
|
+
end
|
91
|
+
end
|
92
|
+
describe 'instance variables' do
|
93
|
+
before do
|
94
|
+
@instance = Percl::SendDigits.new('1234')
|
95
|
+
end
|
96
|
+
it 'should have pauseMs' do
|
97
|
+
expect(@instance).to respond_to(:pauseMs)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
describe 'Reject' do
|
102
|
+
describe 'instance variables' do
|
103
|
+
before do
|
104
|
+
@instance = Percl::Reject.new
|
105
|
+
end
|
106
|
+
it 'should have reason' do
|
107
|
+
expect(@instance).to respond_to(:reason)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'conference participants' do
|
4
|
+
describe 'AddToConference' do
|
5
|
+
describe 'initialize' do
|
6
|
+
before do
|
7
|
+
@instance = Percl::AddToConference.new('MOCK_CONF_ID', 'MOCK_CALL_ID')
|
8
|
+
end
|
9
|
+
it 'should set conferenceId' do
|
10
|
+
addToConf = @instance.instance_variable_get :@conferenceId
|
11
|
+
expect(addToConf).to eq('MOCK_CONF_ID')
|
12
|
+
end
|
13
|
+
it 'should set callId' do
|
14
|
+
callId = @instance.instance_variable_get :@callId
|
15
|
+
end
|
16
|
+
end
|
17
|
+
describe 'instance variables' do
|
18
|
+
before do
|
19
|
+
@instance = Percl::AddToConference.new('MOCK_CONF_ID', 'MOCK_CALL_ID')
|
20
|
+
end
|
21
|
+
it 'should have startConfOnEnter' do
|
22
|
+
expect(@instance).to respond_to(:startConfOnEnter)
|
23
|
+
end
|
24
|
+
it 'should have talk' do
|
25
|
+
expect(@instance).to respond_to(:talk)
|
26
|
+
end
|
27
|
+
it 'should have listen' do
|
28
|
+
expect(@instance).to respond_to(:listen)
|
29
|
+
end
|
30
|
+
it 'should have allowCallControl' do
|
31
|
+
expect(@instance).to respond_to(:allowCallControl)
|
32
|
+
end
|
33
|
+
it 'should have callControlSequence' do
|
34
|
+
expect(@instance).to respond_to(:callControlSequence)
|
35
|
+
end
|
36
|
+
it 'should have callControlUrl' do
|
37
|
+
expect(@instance).to respond_to(:callControlUrl)
|
38
|
+
end
|
39
|
+
it 'should have leaveConferenceUrl' do
|
40
|
+
expect(@instance).to respond_to(:leaveConferenceUrl)
|
41
|
+
end
|
42
|
+
it 'should have notificationUrl' do
|
43
|
+
expect(@instance).to respond_to(:notificationUrl)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
describe 'RemoveFromConference' do
|
48
|
+
describe 'initialize' do
|
49
|
+
before do
|
50
|
+
@instance = Percl::RemoveFromConference.new('MOCK_CALL_ID')
|
51
|
+
end
|
52
|
+
it 'should set callId' do
|
53
|
+
callId = @instance.instance_variable_get :@callId
|
54
|
+
expect(callId).to eq('MOCK_CALL_ID')
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
describe 'SetListen' do
|
59
|
+
describe 'initialize' do
|
60
|
+
before do
|
61
|
+
@instance = Percl::SetListen.new('MOCK_CALL_ID')
|
62
|
+
end
|
63
|
+
it 'should set callId' do
|
64
|
+
callId = @instance.instance_variable_get :@callId
|
65
|
+
expect(callId).to eq('MOCK_CALL_ID')
|
66
|
+
end
|
67
|
+
end
|
68
|
+
describe 'instance variables' do
|
69
|
+
before do
|
70
|
+
@instance = Percl::SetListen.new('MOCK_CALL_ID')
|
71
|
+
end
|
72
|
+
it 'should have listen' do
|
73
|
+
expect(@instance).to respond_to(:listen)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
describe 'SetTalk' do
|
78
|
+
describe 'initialize' do
|
79
|
+
before do
|
80
|
+
@instance = Percl::SetTalk.new('MOCK_CALL_ID')
|
81
|
+
end
|
82
|
+
it 'should set callId' do
|
83
|
+
callId = @instance.instance_variable_get :@callId
|
84
|
+
expect(callId).to eq('MOCK_CALL_ID')
|
85
|
+
end
|
86
|
+
end
|
87
|
+
describe 'instance variables' do
|
88
|
+
before do
|
89
|
+
@instance = Percl::SetTalk.new('MOCK_CALL_ID')
|
90
|
+
end
|
91
|
+
it 'should have talk' do
|
92
|
+
expect(@instance).to respond_to(:talk)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Conferences' do
|
4
|
+
describe 'CreateConference' do
|
5
|
+
describe 'initialize' do
|
6
|
+
before do
|
7
|
+
@instance = Percl::CreateConference.new('MOCK_ACTION_URL')
|
8
|
+
end
|
9
|
+
it 'should set actionUrl' do
|
10
|
+
actionUrl = @instance.instance_variable_get :@actionUrl
|
11
|
+
expect(actionUrl).to eq('MOCK_ACTION_URL')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
describe 'instance variables' do
|
15
|
+
before do
|
16
|
+
@instance = Percl::CreateConference.new('MOCK_ACTION_URL')
|
17
|
+
end
|
18
|
+
it 'should have alias' do
|
19
|
+
expect(@instance).to respond_to(:alias)
|
20
|
+
end
|
21
|
+
it 'should have playBeep' do
|
22
|
+
expect(@instance).to respond_to(:playBeep)
|
23
|
+
end
|
24
|
+
it 'should have record' do
|
25
|
+
expect(@instance).to respond_to(:record)
|
26
|
+
end
|
27
|
+
it 'should have waitUrl' do
|
28
|
+
expect(@instance).to respond_to(:waitUrl)
|
29
|
+
end
|
30
|
+
it 'should have statusCallbackUrl' do
|
31
|
+
expect(@instance).to respond_to(:statusCallbackUrl)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'TerminateConference' do
|
36
|
+
describe 'initialize' do
|
37
|
+
before do
|
38
|
+
@instance = Percl::TerminateConference.new('MOCK_CONF_ID')
|
39
|
+
end
|
40
|
+
it 'should set conferenceId' do
|
41
|
+
confId = @instance.instance_variable_get :@conferenceId
|
42
|
+
expect(confId).to eq('MOCK_CONF_ID')
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|