reacon-sdk 2.0.15.beta.1 → 4.0.0.beta.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 311db09f088a061e455432d9201547c066c19d528bef3dbf15c1a2c164c445a5
|
|
4
|
+
data.tar.gz: b0fd9292551b6e043a7bddd25bf6902b494ae9ebbf66f67bc97381ea0a0a26e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a71703cb80403e4176c2a5ea1f9c147bea4debb7c25cc88fbbf75f09830d7766fd21328e2e0035ad1d5300dd2a7d00c0ed1411129ea333837fc7c7e0174e6dee
|
|
7
|
+
data.tar.gz: c803db3209e8911397a7012272ce0c25d18a9224eb0edc1f01723bb20a04961d68fcaf1e1a6158aaa71329c4c5948aac12517e7063c7bafd54c74656833fbfbb
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Reacon Ruby SDK
|
|
2
2
|
|
|
3
|
-
Package `reacon-sdk`, version `
|
|
3
|
+
Package `reacon-sdk`, version `4.0.0.beta.1`.
|
|
4
4
|
|
|
5
5
|
Minimum runtime: **Ruby 3.2**.
|
|
6
6
|
|
|
@@ -26,14 +26,14 @@ Reacon - the Ruby gem for the Reacon API
|
|
|
26
26
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
27
27
|
|
|
28
28
|
- API version: 0.1.0
|
|
29
|
-
- Package version:
|
|
29
|
+
- Package version: 4.0.0.beta.1
|
|
30
30
|
- Generator version: 7.25.0
|
|
31
31
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
32
32
|
|
|
33
33
|
## Installation
|
|
34
34
|
|
|
35
35
|
```sh
|
|
36
|
-
gem install reacon-sdk --version
|
|
36
|
+
gem install reacon-sdk --version 4.0.0.beta.1 --prerelease
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## Getting Started
|
|
@@ -15,6 +15,9 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Reacon
|
|
17
17
|
class PublicStats < ApiModelBase
|
|
18
|
+
# Wire protocol major version, independent of SDK and actions-package versions.
|
|
19
|
+
attr_accessor :api_protocol_version
|
|
20
|
+
|
|
18
21
|
attr_accessor :emails
|
|
19
22
|
|
|
20
23
|
attr_accessor :mentions
|
|
@@ -24,6 +27,7 @@ module Reacon
|
|
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
28
|
def self.attribute_map
|
|
26
29
|
{
|
|
30
|
+
:'api_protocol_version' => :'apiProtocolVersion',
|
|
27
31
|
:'emails' => :'emails',
|
|
28
32
|
:'mentions' => :'mentions',
|
|
29
33
|
:'version' => :'version'
|
|
@@ -43,6 +47,7 @@ module Reacon
|
|
|
43
47
|
# Attribute type mapping.
|
|
44
48
|
def self.openapi_types
|
|
45
49
|
{
|
|
50
|
+
:'api_protocol_version' => :'Integer',
|
|
46
51
|
:'emails' => :'Integer',
|
|
47
52
|
:'mentions' => :'Integer',
|
|
48
53
|
:'version' => :'String'
|
|
@@ -71,6 +76,10 @@ module Reacon
|
|
|
71
76
|
h[k.to_sym] = v
|
|
72
77
|
}
|
|
73
78
|
|
|
79
|
+
if attributes.key?(:'api_protocol_version')
|
|
80
|
+
self.api_protocol_version = attributes[:'api_protocol_version']
|
|
81
|
+
end
|
|
82
|
+
|
|
74
83
|
if attributes.key?(:'emails')
|
|
75
84
|
self.emails = attributes[:'emails']
|
|
76
85
|
else
|
|
@@ -95,6 +104,10 @@ module Reacon
|
|
|
95
104
|
def list_invalid_properties
|
|
96
105
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
97
106
|
invalid_properties = Array.new
|
|
107
|
+
if !@api_protocol_version.nil? && @api_protocol_version < 1
|
|
108
|
+
invalid_properties.push('invalid value for "api_protocol_version", must be greater than or equal to 1.')
|
|
109
|
+
end
|
|
110
|
+
|
|
98
111
|
if @emails.nil?
|
|
99
112
|
invalid_properties.push('invalid value for "emails", emails cannot be nil.')
|
|
100
113
|
end
|
|
@@ -114,12 +127,27 @@ module Reacon
|
|
|
114
127
|
# @return true if the model is valid
|
|
115
128
|
def valid?
|
|
116
129
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
130
|
+
return false if !@api_protocol_version.nil? && @api_protocol_version < 1
|
|
117
131
|
return false if @emails.nil?
|
|
118
132
|
return false if @mentions.nil?
|
|
119
133
|
return false if @version.nil?
|
|
120
134
|
true
|
|
121
135
|
end
|
|
122
136
|
|
|
137
|
+
# Custom attribute writer method with validation
|
|
138
|
+
# @param [Object] api_protocol_version Value to be assigned
|
|
139
|
+
def api_protocol_version=(api_protocol_version)
|
|
140
|
+
if api_protocol_version.nil?
|
|
141
|
+
fail ArgumentError, 'api_protocol_version cannot be nil'
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if api_protocol_version < 1
|
|
145
|
+
fail ArgumentError, 'invalid value for "api_protocol_version", must be greater than or equal to 1.'
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
@api_protocol_version = api_protocol_version
|
|
149
|
+
end
|
|
150
|
+
|
|
123
151
|
# Custom attribute writer method with validation
|
|
124
152
|
# @param [Object] emails Value to be assigned
|
|
125
153
|
def emails=(emails)
|
|
@@ -155,6 +183,7 @@ module Reacon
|
|
|
155
183
|
def ==(o)
|
|
156
184
|
return true if self.equal?(o)
|
|
157
185
|
self.class == o.class &&
|
|
186
|
+
api_protocol_version == o.api_protocol_version &&
|
|
158
187
|
emails == o.emails &&
|
|
159
188
|
mentions == o.mentions &&
|
|
160
189
|
version == o.version
|
|
@@ -169,7 +198,7 @@ module Reacon
|
|
|
169
198
|
# Calculates hash code according to all attributes.
|
|
170
199
|
# @return [Integer] Hash code
|
|
171
200
|
def hash
|
|
172
|
-
[emails, mentions, version].hash
|
|
201
|
+
[api_protocol_version, emails, mentions, version].hash
|
|
173
202
|
end
|
|
174
203
|
|
|
175
204
|
# Builds the object from hash
|
data/lib/reacon-sdk/version.rb
CHANGED