dear-inventory-ruby 0.2.9 → 0.2.10.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +4 -4
- data/lib/dear-inventory-ruby/models/account.rb +0 -76
- data/lib/dear-inventory-ruby/models/contact.rb +0 -94
- data/lib/dear-inventory-ruby/models/customer.rb +0 -34
- data/lib/dear-inventory-ruby/models/payment_term.rb +0 -19
- data/lib/dear-inventory-ruby/models/supplier_customer_address.rb +0 -75
- data/lib/dear-inventory-ruby/models/tax_component.rb +0 -19
- data/lib/dear-inventory-ruby/version.rb +1 -1
- data/spec/.DS_Store +0 -0
- 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: d77bdd34f343e803604fada055da784f0693b628d3e44987a3eb2b4db5f2b4c4
|
4
|
+
data.tar.gz: 65e24829fec2fca131f62d72b3568bd072bf7ece094236cda84d7f29e452f540
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b843cfc2806503478ccd252f38051d53d5148a400ae041abb7ca1c4a274afc2a71ffcb78e84344b8b7418c339d40ae41acf8ef03cedce2337eba38375a21e14
|
7
|
+
data.tar.gz: 5fbbcc7d7bf3a16964bd50a1ccac546aa1ecd068f16a2846c94e0fca3019fe0385e6b880c35374668c3bf20c9546baab50f52614c0888bdc768b50af50af871d
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [0.2.10.1] - 2024-02-06
|
6
|
+
|
7
|
+
- Update gem version
|
8
|
+
|
9
|
+
## [0.2.10] - 2024-02-06
|
10
|
+
|
11
|
+
- Remove the validations related to `maxlength`
|
12
|
+
|
5
13
|
## [0.2.9] - 2023-05-30
|
6
14
|
|
7
15
|
- Add `Attachments` property to responses of the endpoint GET `/sale`
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ This specifing endpoints for DEAR Inventory API
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 0.2.
|
10
|
+
- Package version: 0.2.10.1
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://www.nhansg.com](https://www.nhansg.com)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build dear-inventory-ruby.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./dear-inventory-ruby-0.2.
|
27
|
+
gem install ./dear-inventory-ruby-0.2.10.1.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./dear-inventory-ruby-0.2.
|
30
|
+
(for development, run `gem install --dev ./dear-inventory-ruby-0.2.10.1.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'dear-inventory-ruby', '~> 0.2.
|
36
|
+
gem 'dear-inventory-ruby', '~> 0.2.10.1'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -191,34 +191,18 @@ module DearInventoryRuby
|
|
191
191
|
invalid_properties.push('invalid value for "code", code cannot be nil.')
|
192
192
|
end
|
193
193
|
|
194
|
-
if @code.to_s.length > 50
|
195
|
-
invalid_properties.push('invalid value for "code", the character length must be smaller than or equal to 50.')
|
196
|
-
end
|
197
|
-
|
198
194
|
if @name.nil?
|
199
195
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
200
196
|
end
|
201
197
|
|
202
|
-
if @name.to_s.length > 256
|
203
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 256.')
|
204
|
-
end
|
205
|
-
|
206
198
|
if @type.nil?
|
207
199
|
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
208
200
|
end
|
209
201
|
|
210
|
-
if @type.to_s.length > 50
|
211
|
-
invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 50.')
|
212
|
-
end
|
213
|
-
|
214
202
|
if @status.nil?
|
215
203
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
216
204
|
end
|
217
205
|
|
218
|
-
if @status.to_s.length > 50
|
219
|
-
invalid_properties.push('invalid value for "status", the character length must be smaller than or equal to 50.')
|
220
|
-
end
|
221
|
-
|
222
206
|
invalid_properties
|
223
207
|
end
|
224
208
|
|
@@ -226,72 +210,12 @@ module DearInventoryRuby
|
|
226
210
|
# @return true if the model is valid
|
227
211
|
def valid?
|
228
212
|
return false if @code.nil?
|
229
|
-
return false if @code.to_s.length > 50
|
230
213
|
return false if @name.nil?
|
231
|
-
return false if @name.to_s.length > 256
|
232
214
|
return false if @type.nil?
|
233
|
-
return false if @type.to_s.length > 50
|
234
215
|
return false if @status.nil?
|
235
|
-
return false if @status.to_s.length > 50
|
236
216
|
true
|
237
217
|
end
|
238
218
|
|
239
|
-
# Custom attribute writer method with validation
|
240
|
-
# @param [Object] code Value to be assigned
|
241
|
-
def code=(code)
|
242
|
-
if code.nil?
|
243
|
-
fail ArgumentError, 'code cannot be nil'
|
244
|
-
end
|
245
|
-
|
246
|
-
if code.to_s.length > 50
|
247
|
-
fail ArgumentError, 'invalid value for "code", the character length must be smaller than or equal to 50.'
|
248
|
-
end
|
249
|
-
|
250
|
-
@code = code
|
251
|
-
end
|
252
|
-
|
253
|
-
# Custom attribute writer method with validation
|
254
|
-
# @param [Object] name Value to be assigned
|
255
|
-
def name=(name)
|
256
|
-
if name.nil?
|
257
|
-
fail ArgumentError, 'name cannot be nil'
|
258
|
-
end
|
259
|
-
|
260
|
-
if name.to_s.length > 256
|
261
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 256.'
|
262
|
-
end
|
263
|
-
|
264
|
-
@name = name
|
265
|
-
end
|
266
|
-
|
267
|
-
# Custom attribute writer method with validation
|
268
|
-
# @param [Object] type Value to be assigned
|
269
|
-
def type=(type)
|
270
|
-
if type.nil?
|
271
|
-
fail ArgumentError, 'type cannot be nil'
|
272
|
-
end
|
273
|
-
|
274
|
-
if type.to_s.length > 50
|
275
|
-
fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 50.'
|
276
|
-
end
|
277
|
-
|
278
|
-
@type = type
|
279
|
-
end
|
280
|
-
|
281
|
-
# Custom attribute writer method with validation
|
282
|
-
# @param [Object] status Value to be assigned
|
283
|
-
def status=(status)
|
284
|
-
if status.nil?
|
285
|
-
fail ArgumentError, 'status cannot be nil'
|
286
|
-
end
|
287
|
-
|
288
|
-
if status.to_s.length > 50
|
289
|
-
fail ArgumentError, 'invalid value for "status", the character length must be smaller than or equal to 50.'
|
290
|
-
end
|
291
|
-
|
292
|
-
@status = status
|
293
|
-
end
|
294
|
-
|
295
219
|
# Checks equality by comparing each attribute.
|
296
220
|
# @param [Object] Object to be compared
|
297
221
|
def ==(o)
|
@@ -159,30 +159,6 @@ module DearInventoryRuby
|
|
159
159
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
160
160
|
end
|
161
161
|
|
162
|
-
if @name.to_s.length > 256
|
163
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 256.')
|
164
|
-
end
|
165
|
-
|
166
|
-
if !@phone.nil? && @phone.to_s.length > 50
|
167
|
-
invalid_properties.push('invalid value for "phone", the character length must be smaller than or equal to 50.')
|
168
|
-
end
|
169
|
-
|
170
|
-
if !@fax.nil? && @fax.to_s.length > 50
|
171
|
-
invalid_properties.push('invalid value for "fax", the character length must be smaller than or equal to 50.')
|
172
|
-
end
|
173
|
-
|
174
|
-
if !@email.nil? && @email.to_s.length > 256
|
175
|
-
invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 256.')
|
176
|
-
end
|
177
|
-
|
178
|
-
if !@website.nil? && @website.to_s.length > 256
|
179
|
-
invalid_properties.push('invalid value for "website", the character length must be smaller than or equal to 256.')
|
180
|
-
end
|
181
|
-
|
182
|
-
if !@comment.nil? && @comment.to_s.length > 256
|
183
|
-
invalid_properties.push('invalid value for "comment", the character length must be smaller than or equal to 256.')
|
184
|
-
end
|
185
|
-
|
186
162
|
invalid_properties
|
187
163
|
end
|
188
164
|
|
@@ -190,79 +166,9 @@ module DearInventoryRuby
|
|
190
166
|
# @return true if the model is valid
|
191
167
|
def valid?
|
192
168
|
return false if @name.nil?
|
193
|
-
return false if @name.to_s.length > 256
|
194
|
-
return false if !@phone.nil? && @phone.to_s.length > 50
|
195
|
-
return false if !@fax.nil? && @fax.to_s.length > 50
|
196
|
-
return false if !@email.nil? && @email.to_s.length > 256
|
197
|
-
return false if !@website.nil? && @website.to_s.length > 256
|
198
|
-
return false if !@comment.nil? && @comment.to_s.length > 256
|
199
169
|
true
|
200
170
|
end
|
201
171
|
|
202
|
-
# Custom attribute writer method with validation
|
203
|
-
# @param [Object] name Value to be assigned
|
204
|
-
def name=(name)
|
205
|
-
if name.nil?
|
206
|
-
fail ArgumentError, 'name cannot be nil'
|
207
|
-
end
|
208
|
-
|
209
|
-
if name.to_s.length > 256
|
210
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 256.'
|
211
|
-
end
|
212
|
-
|
213
|
-
@name = name
|
214
|
-
end
|
215
|
-
|
216
|
-
# Custom attribute writer method with validation
|
217
|
-
# @param [Object] phone Value to be assigned
|
218
|
-
def phone=(phone)
|
219
|
-
if !phone.nil? && phone.to_s.length > 50
|
220
|
-
fail ArgumentError, 'invalid value for "phone", the character length must be smaller than or equal to 50.'
|
221
|
-
end
|
222
|
-
|
223
|
-
@phone = phone
|
224
|
-
end
|
225
|
-
|
226
|
-
# Custom attribute writer method with validation
|
227
|
-
# @param [Object] fax Value to be assigned
|
228
|
-
def fax=(fax)
|
229
|
-
if !fax.nil? && fax.to_s.length > 50
|
230
|
-
fail ArgumentError, 'invalid value for "fax", the character length must be smaller than or equal to 50.'
|
231
|
-
end
|
232
|
-
|
233
|
-
@fax = fax
|
234
|
-
end
|
235
|
-
|
236
|
-
# Custom attribute writer method with validation
|
237
|
-
# @param [Object] email Value to be assigned
|
238
|
-
def email=(email)
|
239
|
-
if !email.nil? && email.to_s.length > 256
|
240
|
-
fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 256.'
|
241
|
-
end
|
242
|
-
|
243
|
-
@email = email
|
244
|
-
end
|
245
|
-
|
246
|
-
# Custom attribute writer method with validation
|
247
|
-
# @param [Object] website Value to be assigned
|
248
|
-
def website=(website)
|
249
|
-
if !website.nil? && website.to_s.length > 256
|
250
|
-
fail ArgumentError, 'invalid value for "website", the character length must be smaller than or equal to 256.'
|
251
|
-
end
|
252
|
-
|
253
|
-
@website = website
|
254
|
-
end
|
255
|
-
|
256
|
-
# Custom attribute writer method with validation
|
257
|
-
# @param [Object] comment Value to be assigned
|
258
|
-
def comment=(comment)
|
259
|
-
if !comment.nil? && comment.to_s.length > 256
|
260
|
-
fail ArgumentError, 'invalid value for "comment", the character length must be smaller than or equal to 256.'
|
261
|
-
end
|
262
|
-
|
263
|
-
@comment = comment
|
264
|
-
end
|
265
|
-
|
266
172
|
# Checks equality by comparing each attribute.
|
267
173
|
# @param [Object] Object to be compared
|
268
174
|
def ==(o)
|
@@ -350,10 +350,6 @@ module DearInventoryRuby
|
|
350
350
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
351
351
|
end
|
352
352
|
|
353
|
-
if @name.to_s.length > 256
|
354
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 256.')
|
355
|
-
end
|
356
|
-
|
357
353
|
if @status.nil?
|
358
354
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
359
355
|
end
|
@@ -378,10 +374,6 @@ module DearInventoryRuby
|
|
378
374
|
invalid_properties.push('invalid value for "tax_rule", tax_rule cannot be nil.')
|
379
375
|
end
|
380
376
|
|
381
|
-
if !@comments.nil? && @comments.to_s.length > 2000
|
382
|
-
invalid_properties.push('invalid value for "comments", the character length must be smaller than or equal to 2000.')
|
383
|
-
end
|
384
|
-
|
385
377
|
invalid_properties
|
386
378
|
end
|
387
379
|
|
@@ -389,41 +381,15 @@ module DearInventoryRuby
|
|
389
381
|
# @return true if the model is valid
|
390
382
|
def valid?
|
391
383
|
return false if @name.nil?
|
392
|
-
return false if @name.to_s.length > 256
|
393
384
|
return false if @status.nil?
|
394
385
|
return false if @currency.nil?
|
395
386
|
return false if @payment_term.nil?
|
396
387
|
return false if @account_receivable.nil?
|
397
388
|
return false if @revenue_account.nil?
|
398
389
|
return false if @tax_rule.nil?
|
399
|
-
return false if !@comments.nil? && @comments.to_s.length > 2000
|
400
390
|
true
|
401
391
|
end
|
402
392
|
|
403
|
-
# Custom attribute writer method with validation
|
404
|
-
# @param [Object] name Value to be assigned
|
405
|
-
def name=(name)
|
406
|
-
if name.nil?
|
407
|
-
fail ArgumentError, 'name cannot be nil'
|
408
|
-
end
|
409
|
-
|
410
|
-
if name.to_s.length > 256
|
411
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 256.'
|
412
|
-
end
|
413
|
-
|
414
|
-
@name = name
|
415
|
-
end
|
416
|
-
|
417
|
-
# Custom attribute writer method with validation
|
418
|
-
# @param [Object] comments Value to be assigned
|
419
|
-
def comments=(comments)
|
420
|
-
if !comments.nil? && comments.to_s.length > 2000
|
421
|
-
fail ArgumentError, 'invalid value for "comments", the character length must be smaller than or equal to 2000.'
|
422
|
-
end
|
423
|
-
|
424
|
-
@comments = comments
|
425
|
-
end
|
426
|
-
|
427
393
|
# Checks equality by comparing each attribute.
|
428
394
|
# @param [Object] Object to be compared
|
429
395
|
def ==(o)
|
@@ -114,10 +114,6 @@ module DearInventoryRuby
|
|
114
114
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
115
115
|
end
|
116
116
|
|
117
|
-
if @name.to_s.length > 256
|
118
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 256.')
|
119
|
-
end
|
120
|
-
|
121
117
|
invalid_properties
|
122
118
|
end
|
123
119
|
|
@@ -125,24 +121,9 @@ module DearInventoryRuby
|
|
125
121
|
# @return true if the model is valid
|
126
122
|
def valid?
|
127
123
|
return false if @name.nil?
|
128
|
-
return false if @name.to_s.length > 256
|
129
124
|
true
|
130
125
|
end
|
131
126
|
|
132
|
-
# Custom attribute writer method with validation
|
133
|
-
# @param [Object] name Value to be assigned
|
134
|
-
def name=(name)
|
135
|
-
if name.nil?
|
136
|
-
fail ArgumentError, 'name cannot be nil'
|
137
|
-
end
|
138
|
-
|
139
|
-
if name.to_s.length > 256
|
140
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 256.'
|
141
|
-
end
|
142
|
-
|
143
|
-
@name = name
|
144
|
-
end
|
145
|
-
|
146
127
|
# Checks equality by comparing each attribute.
|
147
128
|
# @param [Object] Object to be compared
|
148
129
|
def ==(o)
|
@@ -135,26 +135,6 @@ module DearInventoryRuby
|
|
135
135
|
# @return Array for valid properties with the reasons
|
136
136
|
def list_invalid_properties
|
137
137
|
invalid_properties = Array.new
|
138
|
-
if !@line1.nil? && @line1.to_s.length > 256
|
139
|
-
invalid_properties.push('invalid value for "line1", the character length must be smaller than or equal to 256.')
|
140
|
-
end
|
141
|
-
|
142
|
-
if !@line2.nil? && @line2.to_s.length > 256
|
143
|
-
invalid_properties.push('invalid value for "line2", the character length must be smaller than or equal to 256.')
|
144
|
-
end
|
145
|
-
|
146
|
-
if !@city.nil? && @city.to_s.length > 256
|
147
|
-
invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to 256.')
|
148
|
-
end
|
149
|
-
|
150
|
-
if !@state.nil? && @state.to_s.length > 256
|
151
|
-
invalid_properties.push('invalid value for "state", the character length must be smaller than or equal to 256.')
|
152
|
-
end
|
153
|
-
|
154
|
-
if !@post_code.nil? && @post_code.to_s.length > 20
|
155
|
-
invalid_properties.push('invalid value for "post_code", the character length must be smaller than or equal to 20.')
|
156
|
-
end
|
157
|
-
|
158
138
|
if @country.nil?
|
159
139
|
invalid_properties.push('invalid value for "country", country cannot be nil.')
|
160
140
|
end
|
@@ -169,66 +149,11 @@ module DearInventoryRuby
|
|
169
149
|
# Check to see if the all the properties in the model are valid
|
170
150
|
# @return true if the model is valid
|
171
151
|
def valid?
|
172
|
-
return false if !@line1.nil? && @line1.to_s.length > 256
|
173
|
-
return false if !@line2.nil? && @line2.to_s.length > 256
|
174
|
-
return false if !@city.nil? && @city.to_s.length > 256
|
175
|
-
return false if !@state.nil? && @state.to_s.length > 256
|
176
|
-
return false if !@post_code.nil? && @post_code.to_s.length > 20
|
177
152
|
return false if @country.nil?
|
178
153
|
return false if @type.nil?
|
179
154
|
true
|
180
155
|
end
|
181
156
|
|
182
|
-
# Custom attribute writer method with validation
|
183
|
-
# @param [Object] line1 Value to be assigned
|
184
|
-
def line1=(line1)
|
185
|
-
if !line1.nil? && line1.to_s.length > 256
|
186
|
-
fail ArgumentError, 'invalid value for "line1", the character length must be smaller than or equal to 256.'
|
187
|
-
end
|
188
|
-
|
189
|
-
@line1 = line1
|
190
|
-
end
|
191
|
-
|
192
|
-
# Custom attribute writer method with validation
|
193
|
-
# @param [Object] line2 Value to be assigned
|
194
|
-
def line2=(line2)
|
195
|
-
if !line2.nil? && line2.to_s.length > 256
|
196
|
-
fail ArgumentError, 'invalid value for "line2", the character length must be smaller than or equal to 256.'
|
197
|
-
end
|
198
|
-
|
199
|
-
@line2 = line2
|
200
|
-
end
|
201
|
-
|
202
|
-
# Custom attribute writer method with validation
|
203
|
-
# @param [Object] city Value to be assigned
|
204
|
-
def city=(city)
|
205
|
-
if !city.nil? && city.to_s.length > 256
|
206
|
-
fail ArgumentError, 'invalid value for "city", the character length must be smaller than or equal to 256.'
|
207
|
-
end
|
208
|
-
|
209
|
-
@city = city
|
210
|
-
end
|
211
|
-
|
212
|
-
# Custom attribute writer method with validation
|
213
|
-
# @param [Object] state Value to be assigned
|
214
|
-
def state=(state)
|
215
|
-
if !state.nil? && state.to_s.length > 256
|
216
|
-
fail ArgumentError, 'invalid value for "state", the character length must be smaller than or equal to 256.'
|
217
|
-
end
|
218
|
-
|
219
|
-
@state = state
|
220
|
-
end
|
221
|
-
|
222
|
-
# Custom attribute writer method with validation
|
223
|
-
# @param [Object] post_code Value to be assigned
|
224
|
-
def post_code=(post_code)
|
225
|
-
if !post_code.nil? && post_code.to_s.length > 20
|
226
|
-
fail ArgumentError, 'invalid value for "post_code", the character length must be smaller than or equal to 20.'
|
227
|
-
end
|
228
|
-
|
229
|
-
@post_code = post_code
|
230
|
-
end
|
231
|
-
|
232
157
|
# Checks equality by comparing each attribute.
|
233
158
|
# @param [Object] Object to be compared
|
234
159
|
def ==(o)
|
@@ -94,10 +94,6 @@ module DearInventoryRuby
|
|
94
94
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
95
95
|
end
|
96
96
|
|
97
|
-
if @name.to_s.length > 50
|
98
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
|
99
|
-
end
|
100
|
-
|
101
97
|
if @percent.nil?
|
102
98
|
invalid_properties.push('invalid value for "percent", percent cannot be nil.')
|
103
99
|
end
|
@@ -125,7 +121,6 @@ module DearInventoryRuby
|
|
125
121
|
# @return true if the model is valid
|
126
122
|
def valid?
|
127
123
|
return false if @name.nil?
|
128
|
-
return false if @name.to_s.length > 50
|
129
124
|
return false if @percent.nil?
|
130
125
|
return false if @percent > 100
|
131
126
|
return false if @percent < 0
|
@@ -134,20 +129,6 @@ module DearInventoryRuby
|
|
134
129
|
true
|
135
130
|
end
|
136
131
|
|
137
|
-
# Custom attribute writer method with validation
|
138
|
-
# @param [Object] name Value to be assigned
|
139
|
-
def name=(name)
|
140
|
-
if name.nil?
|
141
|
-
fail ArgumentError, 'name cannot be nil'
|
142
|
-
end
|
143
|
-
|
144
|
-
if name.to_s.length > 50
|
145
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 50.'
|
146
|
-
end
|
147
|
-
|
148
|
-
@name = name
|
149
|
-
end
|
150
|
-
|
151
132
|
# Custom attribute writer method with validation
|
152
133
|
# @param [Object] percent Value to be assigned
|
153
134
|
def percent=(percent)
|
data/spec/.DS_Store
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dear-inventory-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nhan Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|