daytona_toolbox_api_client 0.170.0 → 0.171.0
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: 6faa0f6faba59070617b24f1b165b75b3aecf4bb6d04f11629be30c5c29bf2d8
|
|
4
|
+
data.tar.gz: dd945b5fb27009657e303e5183bb5215ad4d450aed0a71a07cfe4485538b7377
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5fc76ca778c592f9842168a95b153a764a46231ece677bf89bcb45a9c5a7abec5f1968e75cbb1e00e4324df859c480d07c29a075150da34adff779cf7273615e
|
|
7
|
+
data.tar.gz: c1196db8b86e150e0feb9854464b596e283640668b34a18831d6dfedc2451ca688ab77b1d094ed77983865d9753962fb21d88b9e2625b97bb103c25da0754372
|
|
@@ -98,6 +98,10 @@ module DaytonaToolboxApiClient
|
|
|
98
98
|
def list_invalid_properties
|
|
99
99
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
100
100
|
invalid_properties = Array.new
|
|
101
|
+
if !@amount.nil? && @amount < 0
|
|
102
|
+
invalid_properties.push('invalid value for "amount", must be greater than or equal to 0.')
|
|
103
|
+
end
|
|
104
|
+
|
|
101
105
|
invalid_properties
|
|
102
106
|
end
|
|
103
107
|
|
|
@@ -105,9 +109,24 @@ module DaytonaToolboxApiClient
|
|
|
105
109
|
# @return true if the model is valid
|
|
106
110
|
def valid?
|
|
107
111
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
112
|
+
return false if !@amount.nil? && @amount < 0
|
|
108
113
|
true
|
|
109
114
|
end
|
|
110
115
|
|
|
116
|
+
# Custom attribute writer method with validation
|
|
117
|
+
# @param [Object] amount Value to be assigned
|
|
118
|
+
def amount=(amount)
|
|
119
|
+
if amount.nil?
|
|
120
|
+
fail ArgumentError, 'amount cannot be nil'
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if amount < 0
|
|
124
|
+
fail ArgumentError, 'invalid value for "amount", must be greater than or equal to 0.'
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
@amount = amount
|
|
128
|
+
end
|
|
129
|
+
|
|
111
130
|
# Checks equality by comparing each attribute.
|
|
112
131
|
# @param [Object] Object to be compared
|
|
113
132
|
def ==(o)
|