pingram 1.0.9 → 1.0.10
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/Gemfile.lock +1 -1
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/models/list_phone_numbers_response.rb +31 -4
- data/lib/pingram/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7159973c03bf987933bce4476148995727426c5a1105a3872dec4f574291d63
|
|
4
|
+
data.tar.gz: baf82b4097f06f31e86572db6cec2f013734a38612299792bb5f22ebede45d9a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '038a44baf81ffe7b07d8080470ccd42e3fd41b77f1da3745e9eecb06ecacc7b66387a57a7b3d05bd11582cd74d65bb2d2648dbd3b8b6ea6230bd086b70144c81'
|
|
7
|
+
data.tar.gz: 115cf1ae4ad623fdba7fa66cd345c666b7190d1fa50a254fe8d9d999f550fcf5a53daa2be8eeaee81488773f88e6756e56be5935b254758765ac4c9f7b9a4455
|
data/Gemfile.lock
CHANGED
data/lib/pingram/api_client.rb
CHANGED
|
@@ -32,7 +32,7 @@ module Pingram
|
|
|
32
32
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
|
33
33
|
def initialize(config = Configuration.default)
|
|
34
34
|
@config = config
|
|
35
|
-
@user_agent = "pingram-ruby/1.0.
|
|
35
|
+
@user_agent = "pingram-ruby/1.0.10"
|
|
36
36
|
@default_headers = {
|
|
37
37
|
'Content-Type' => 'application/json',
|
|
38
38
|
'User-Agent' => @user_agent
|
|
@@ -18,10 +18,14 @@ module Pingram
|
|
|
18
18
|
class ListPhoneNumbersResponse < ApiModelBase
|
|
19
19
|
attr_accessor :numbers
|
|
20
20
|
|
|
21
|
+
# E.164 shared number the account can send from when it has no dedicated number.
|
|
22
|
+
attr_accessor :shared_number
|
|
23
|
+
|
|
21
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
25
|
def self.attribute_map
|
|
23
26
|
{
|
|
24
|
-
:'numbers' => :'numbers'
|
|
27
|
+
:'numbers' => :'numbers',
|
|
28
|
+
:'shared_number' => :'sharedNumber'
|
|
25
29
|
}
|
|
26
30
|
end
|
|
27
31
|
|
|
@@ -38,7 +42,8 @@ module Pingram
|
|
|
38
42
|
# Attribute type mapping.
|
|
39
43
|
def self.openapi_types
|
|
40
44
|
{
|
|
41
|
-
:'numbers' => :'Array<ListPhoneNumbersResponseNumbersInner>'
|
|
45
|
+
:'numbers' => :'Array<ListPhoneNumbersResponseNumbersInner>',
|
|
46
|
+
:'shared_number' => :'String'
|
|
42
47
|
}
|
|
43
48
|
end
|
|
44
49
|
|
|
@@ -71,6 +76,12 @@ module Pingram
|
|
|
71
76
|
else
|
|
72
77
|
self.numbers = nil
|
|
73
78
|
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'shared_number')
|
|
81
|
+
self.shared_number = attributes[:'shared_number']
|
|
82
|
+
else
|
|
83
|
+
self.shared_number = nil
|
|
84
|
+
end
|
|
74
85
|
end
|
|
75
86
|
|
|
76
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -82,6 +93,10 @@ module Pingram
|
|
|
82
93
|
invalid_properties.push('invalid value for "numbers", numbers cannot be nil.')
|
|
83
94
|
end
|
|
84
95
|
|
|
96
|
+
if @shared_number.nil?
|
|
97
|
+
invalid_properties.push('invalid value for "shared_number", shared_number cannot be nil.')
|
|
98
|
+
end
|
|
99
|
+
|
|
85
100
|
invalid_properties
|
|
86
101
|
end
|
|
87
102
|
|
|
@@ -90,6 +105,7 @@ module Pingram
|
|
|
90
105
|
def valid?
|
|
91
106
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
92
107
|
return false if @numbers.nil?
|
|
108
|
+
return false if @shared_number.nil?
|
|
93
109
|
true
|
|
94
110
|
end
|
|
95
111
|
|
|
@@ -103,12 +119,23 @@ module Pingram
|
|
|
103
119
|
@numbers = numbers
|
|
104
120
|
end
|
|
105
121
|
|
|
122
|
+
# Custom attribute writer method with validation
|
|
123
|
+
# @param [Object] shared_number Value to be assigned
|
|
124
|
+
def shared_number=(shared_number)
|
|
125
|
+
if shared_number.nil?
|
|
126
|
+
fail ArgumentError, 'shared_number cannot be nil'
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
@shared_number = shared_number
|
|
130
|
+
end
|
|
131
|
+
|
|
106
132
|
# Checks equality by comparing each attribute.
|
|
107
133
|
# @param [Object] Object to be compared
|
|
108
134
|
def ==(o)
|
|
109
135
|
return true if self.equal?(o)
|
|
110
136
|
self.class == o.class &&
|
|
111
|
-
numbers == o.numbers
|
|
137
|
+
numbers == o.numbers &&
|
|
138
|
+
shared_number == o.shared_number
|
|
112
139
|
end
|
|
113
140
|
|
|
114
141
|
# @see the `==` method
|
|
@@ -120,7 +147,7 @@ module Pingram
|
|
|
120
147
|
# Calculates hash code according to all attributes.
|
|
121
148
|
# @return [Integer] Hash code
|
|
122
149
|
def hash
|
|
123
|
-
[numbers].hash
|
|
150
|
+
[numbers, shared_number].hash
|
|
124
151
|
end
|
|
125
152
|
|
|
126
153
|
# Builds the object from hash
|
data/lib/pingram/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pingram
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pingram
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|