portatext 1.4.3 → 1.4.4
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/lib/portatext/command/api/settings.rb +36 -0
- data/lib/portatext/command/api/trunks.rb +32 -0
- data/lib/portatext.rb +1 -0
- data/portatext.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b42f5e4feb846bc80a9d909e3af60cb9973c36b0
|
4
|
+
data.tar.gz: 4505c8bca5a32bfb8a39583ff8598873cadc0e38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd716695dc6a3d7e6d30e7db34c5936295cb50a174503a4cbbe43ecdb11da20612e004a14f0b4c9e28d5114ac80033deb0f47d04482646754e47536123b46a2a
|
7
|
+
data.tar.gz: 04b4fdfe7f0aea8849db235378eff1ae942818e21ebbf451c2a2c86c7a0d7e1044616777c402ac6f041fb45996d966f4c8c6de7d6cb2daf79c77bb0e43664783
|
@@ -38,6 +38,42 @@ module PortaText
|
|
38
38
|
set :default_card_id, card_id
|
39
39
|
end
|
40
40
|
|
41
|
+
def amd_max_word_length(value)
|
42
|
+
set :amd_max_word_length, value
|
43
|
+
end
|
44
|
+
|
45
|
+
def amd_silence_threshold(value)
|
46
|
+
set :amd_silence_threshold, value
|
47
|
+
end
|
48
|
+
|
49
|
+
def amd_max_words(value)
|
50
|
+
set :amd_max_words, value
|
51
|
+
end
|
52
|
+
|
53
|
+
def amd_between_words_silence(value)
|
54
|
+
set :amd_between_words_silence, value
|
55
|
+
end
|
56
|
+
|
57
|
+
def amd_min_word_length(value)
|
58
|
+
set :amd_min_word_length, value
|
59
|
+
end
|
60
|
+
|
61
|
+
def amd_total_time(value)
|
62
|
+
set :amd_total_time, value
|
63
|
+
end
|
64
|
+
|
65
|
+
def amd_after_greeting_silence(value)
|
66
|
+
set :amd_after_greeting_silence, value
|
67
|
+
end
|
68
|
+
|
69
|
+
def amd_max_greeting_length(value)
|
70
|
+
set :amd_max_greeting_length, value
|
71
|
+
end
|
72
|
+
|
73
|
+
def amd_initial_silence(value)
|
74
|
+
set :amd_initial_silence, value
|
75
|
+
end
|
76
|
+
|
41
77
|
def endpoint(_method)
|
42
78
|
'me/settings'
|
43
79
|
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module PortaText
|
2
|
+
module Command
|
3
|
+
module Api
|
4
|
+
# The trunks endpoint.
|
5
|
+
# https://github.com/PortaText/docs/wiki/REST-API#api_trunks
|
6
|
+
#
|
7
|
+
# Author:: Marcelo Gornstein (mailto:marcelog@portatext.com)
|
8
|
+
# Copyright:: Copyright (c) 2015 PortaText
|
9
|
+
# License:: Apache-2.0
|
10
|
+
class Trunks < Base
|
11
|
+
def id(id)
|
12
|
+
set :id, id
|
13
|
+
end
|
14
|
+
|
15
|
+
def name(name)
|
16
|
+
set :name, name
|
17
|
+
end
|
18
|
+
|
19
|
+
def ip(ip)
|
20
|
+
set :ip, ip
|
21
|
+
end
|
22
|
+
|
23
|
+
def endpoint(_method)
|
24
|
+
return 'trunks' if @args[:id].nil?
|
25
|
+
id = @args[:id]
|
26
|
+
@args.delete :id
|
27
|
+
"trunks/#{id}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/lib/portatext.rb
CHANGED
@@ -36,6 +36,7 @@ require_relative 'portatext/command/api/my_password'
|
|
36
36
|
require_relative 'portatext/command/api/contacts'
|
37
37
|
require_relative 'portatext/command/api/number_verify'
|
38
38
|
require_relative 'portatext/command/api/services'
|
39
|
+
require_relative 'portatext/command/api/trunks'
|
39
40
|
|
40
41
|
# The PortaText namespace.
|
41
42
|
#
|
data/portatext.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: portatext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PortaText
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- lib/portatext/command/api/tariffs.rb
|
162
162
|
- lib/portatext/command/api/templates.rb
|
163
163
|
- lib/portatext/command/api/timezones.rb
|
164
|
+
- lib/portatext/command/api/trunks.rb
|
164
165
|
- lib/portatext/command/base.rb
|
165
166
|
- lib/portatext/command/descriptor.rb
|
166
167
|
- lib/portatext/command/result.rb
|