zest 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/zest/version.rb +1 -1
- data/spec/api/pulp_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +29 -29
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_spec.rb +3 -3
- data/spec/models/async_operation_response_spec.rb +3 -3
- data/spec/models/distribution_spec.rb +3 -3
- data/spec/models/file_content_spec.rb +3 -3
- data/spec/models/file_publisher_spec.rb +3 -3
- data/spec/models/file_remote_spec.rb +3 -3
- data/spec/models/inline_response_200_10_spec.rb +3 -3
- data/spec/models/inline_response_200_1_spec.rb +3 -3
- data/spec/models/inline_response_200_2_spec.rb +3 -3
- data/spec/models/inline_response_200_3_spec.rb +3 -3
- data/spec/models/inline_response_200_4_spec.rb +3 -3
- data/spec/models/inline_response_200_5_spec.rb +3 -3
- data/spec/models/inline_response_200_6_spec.rb +3 -3
- data/spec/models/inline_response_200_7_spec.rb +3 -3
- data/spec/models/inline_response_200_8_spec.rb +3 -3
- data/spec/models/inline_response_200_9_spec.rb +3 -3
- data/spec/models/inline_response_200_spec.rb +3 -3
- data/spec/models/progress_report_spec.rb +3 -3
- data/spec/models/publication_spec.rb +3 -3
- data/spec/models/repository_publish_url_spec.rb +3 -3
- data/spec/models/repository_spec.rb +3 -3
- data/spec/models/repository_sync_url_spec.rb +3 -3
- data/spec/models/repository_version_create_spec.rb +3 -3
- data/spec/models/repository_version_spec.rb +3 -3
- data/spec/models/task_spec.rb +3 -3
- data/spec/models/user_spec.rb +3 -3
- data/spec/models/worker_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -1
- data/zest.gemspec +3 -4
- metadata +6 -44
- data/api.json +0 -1
- data/config.json +0 -6
- data/katello_pulp_api-0.0.1.gem +0 -0
- data/katello_pulp_api.gemspec +0 -46
- data/lib/katello_pulp_api.rb +0 -67
- data/lib/katello_pulp_api/api/pulp_api.rb +0 -3277
- data/lib/katello_pulp_api/api_client.rb +0 -389
- data/lib/katello_pulp_api/api_error.rb +0 -38
- data/lib/katello_pulp_api/configuration.rb +0 -209
- data/lib/katello_pulp_api/models/artifact.rb +0 -278
- data/lib/katello_pulp_api/models/async_operation_response.rb +0 -194
- data/lib/katello_pulp_api/models/distribution.rb +0 -350
- data/lib/katello_pulp_api/models/file_content.rb +0 -272
- data/lib/katello_pulp_api/models/file_publisher.rb +0 -306
- data/lib/katello_pulp_api/models/file_remote.rb +0 -452
- data/lib/katello_pulp_api/models/inline_response_200.rb +0 -227
- data/lib/katello_pulp_api/models/inline_response_200_1.rb +0 -227
- data/lib/katello_pulp_api/models/inline_response_200_10.rb +0 -227
- data/lib/katello_pulp_api/models/inline_response_200_2.rb +0 -227
- data/lib/katello_pulp_api/models/inline_response_200_3.rb +0 -227
- data/lib/katello_pulp_api/models/inline_response_200_4.rb +0 -227
- data/lib/katello_pulp_api/models/inline_response_200_5.rb +0 -227
- data/lib/katello_pulp_api/models/inline_response_200_6.rb +0 -227
- data/lib/katello_pulp_api/models/inline_response_200_7.rb +0 -227
- data/lib/katello_pulp_api/models/inline_response_200_8.rb +0 -227
- data/lib/katello_pulp_api/models/inline_response_200_9.rb +0 -227
- data/lib/katello_pulp_api/models/progress_report.rb +0 -271
- data/lib/katello_pulp_api/models/publication.rb +0 -249
- data/lib/katello_pulp_api/models/repository.rb +0 -260
- data/lib/katello_pulp_api/models/repository_publish_url.rb +0 -199
- data/lib/katello_pulp_api/models/repository_sync_url.rb +0 -206
- data/lib/katello_pulp_api/models/repository_version.rb +0 -277
- data/lib/katello_pulp_api/models/repository_version_create.rb +0 -223
- data/lib/katello_pulp_api/models/task.rb +0 -363
- data/lib/katello_pulp_api/models/user.rb +0 -284
- data/lib/katello_pulp_api/models/worker.rb +0 -254
- data/lib/katello_pulp_api/version.rb +0 -15
@@ -1,278 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp3 API
|
3
|
-
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
-
|
6
|
-
OpenAPI spec version: v3
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module KatelloPulpApi
|
16
|
-
|
17
|
-
class Artifact
|
18
|
-
attr_accessor :_href
|
19
|
-
|
20
|
-
# Timestamp of creation.
|
21
|
-
attr_accessor :_created
|
22
|
-
|
23
|
-
# The stored file.
|
24
|
-
attr_accessor :file
|
25
|
-
|
26
|
-
# The size of the file in bytes.
|
27
|
-
attr_accessor :size
|
28
|
-
|
29
|
-
# The MD5 checksum of the file if available.
|
30
|
-
attr_accessor :md5
|
31
|
-
|
32
|
-
# The SHA-1 checksum of the file if available.
|
33
|
-
attr_accessor :sha1
|
34
|
-
|
35
|
-
# The SHA-224 checksum of the file if available.
|
36
|
-
attr_accessor :sha224
|
37
|
-
|
38
|
-
# The SHA-256 checksum of the file if available.
|
39
|
-
attr_accessor :sha256
|
40
|
-
|
41
|
-
# The SHA-384 checksum of the file if available.
|
42
|
-
attr_accessor :sha384
|
43
|
-
|
44
|
-
# The SHA-512 checksum of the file if available.
|
45
|
-
attr_accessor :sha512
|
46
|
-
|
47
|
-
|
48
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
49
|
-
def self.attribute_map
|
50
|
-
{
|
51
|
-
:'_href' => :'_href',
|
52
|
-
:'_created' => :'_created',
|
53
|
-
:'file' => :'file',
|
54
|
-
:'size' => :'size',
|
55
|
-
:'md5' => :'md5',
|
56
|
-
:'sha1' => :'sha1',
|
57
|
-
:'sha224' => :'sha224',
|
58
|
-
:'sha256' => :'sha256',
|
59
|
-
:'sha384' => :'sha384',
|
60
|
-
:'sha512' => :'sha512'
|
61
|
-
}
|
62
|
-
end
|
63
|
-
|
64
|
-
# Attribute type mapping.
|
65
|
-
def self.swagger_types
|
66
|
-
{
|
67
|
-
:'_href' => :'String',
|
68
|
-
:'_created' => :'DateTime',
|
69
|
-
:'file' => :'String',
|
70
|
-
:'size' => :'Integer',
|
71
|
-
:'md5' => :'String',
|
72
|
-
:'sha1' => :'String',
|
73
|
-
:'sha224' => :'String',
|
74
|
-
:'sha256' => :'String',
|
75
|
-
:'sha384' => :'String',
|
76
|
-
:'sha512' => :'String'
|
77
|
-
}
|
78
|
-
end
|
79
|
-
|
80
|
-
# Initializes the object
|
81
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
82
|
-
def initialize(attributes = {})
|
83
|
-
return unless attributes.is_a?(Hash)
|
84
|
-
|
85
|
-
# convert string to symbol for hash key
|
86
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
87
|
-
|
88
|
-
if attributes.has_key?(:'_href')
|
89
|
-
self._href = attributes[:'_href']
|
90
|
-
end
|
91
|
-
|
92
|
-
if attributes.has_key?(:'_created')
|
93
|
-
self._created = attributes[:'_created']
|
94
|
-
end
|
95
|
-
|
96
|
-
if attributes.has_key?(:'file')
|
97
|
-
self.file = attributes[:'file']
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes.has_key?(:'size')
|
101
|
-
self.size = attributes[:'size']
|
102
|
-
end
|
103
|
-
|
104
|
-
if attributes.has_key?(:'md5')
|
105
|
-
self.md5 = attributes[:'md5']
|
106
|
-
end
|
107
|
-
|
108
|
-
if attributes.has_key?(:'sha1')
|
109
|
-
self.sha1 = attributes[:'sha1']
|
110
|
-
end
|
111
|
-
|
112
|
-
if attributes.has_key?(:'sha224')
|
113
|
-
self.sha224 = attributes[:'sha224']
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.has_key?(:'sha256')
|
117
|
-
self.sha256 = attributes[:'sha256']
|
118
|
-
end
|
119
|
-
|
120
|
-
if attributes.has_key?(:'sha384')
|
121
|
-
self.sha384 = attributes[:'sha384']
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.has_key?(:'sha512')
|
125
|
-
self.sha512 = attributes[:'sha512']
|
126
|
-
end
|
127
|
-
|
128
|
-
end
|
129
|
-
|
130
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
131
|
-
# @return Array for valid properties with the reasons
|
132
|
-
def list_invalid_properties
|
133
|
-
invalid_properties = Array.new
|
134
|
-
return invalid_properties
|
135
|
-
end
|
136
|
-
|
137
|
-
# Check to see if the all the properties in the model are valid
|
138
|
-
# @return true if the model is valid
|
139
|
-
def valid?
|
140
|
-
return true
|
141
|
-
end
|
142
|
-
|
143
|
-
# Checks equality by comparing each attribute.
|
144
|
-
# @param [Object] Object to be compared
|
145
|
-
def ==(o)
|
146
|
-
return true if self.equal?(o)
|
147
|
-
self.class == o.class &&
|
148
|
-
_href == o._href &&
|
149
|
-
_created == o._created &&
|
150
|
-
file == o.file &&
|
151
|
-
size == o.size &&
|
152
|
-
md5 == o.md5 &&
|
153
|
-
sha1 == o.sha1 &&
|
154
|
-
sha224 == o.sha224 &&
|
155
|
-
sha256 == o.sha256 &&
|
156
|
-
sha384 == o.sha384 &&
|
157
|
-
sha512 == o.sha512
|
158
|
-
end
|
159
|
-
|
160
|
-
# @see the `==` method
|
161
|
-
# @param [Object] Object to be compared
|
162
|
-
def eql?(o)
|
163
|
-
self == o
|
164
|
-
end
|
165
|
-
|
166
|
-
# Calculates hash code according to all attributes.
|
167
|
-
# @return [Fixnum] Hash code
|
168
|
-
def hash
|
169
|
-
[_href, _created, file, size, md5, sha1, sha224, sha256, sha384, sha512].hash
|
170
|
-
end
|
171
|
-
|
172
|
-
# Builds the object from hash
|
173
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
174
|
-
# @return [Object] Returns the model itself
|
175
|
-
def build_from_hash(attributes)
|
176
|
-
return nil unless attributes.is_a?(Hash)
|
177
|
-
self.class.swagger_types.each_pair do |key, type|
|
178
|
-
if type =~ /\AArray<(.*)>/i
|
179
|
-
# check to ensure the input is an array given that the the attribute
|
180
|
-
# is documented as an array but the input is not
|
181
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
182
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
183
|
-
end
|
184
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
185
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
186
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
187
|
-
end
|
188
|
-
|
189
|
-
self
|
190
|
-
end
|
191
|
-
|
192
|
-
# Deserializes the data based on type
|
193
|
-
# @param string type Data type
|
194
|
-
# @param string value Value to be deserialized
|
195
|
-
# @return [Object] Deserialized data
|
196
|
-
def _deserialize(type, value)
|
197
|
-
case type.to_sym
|
198
|
-
when :DateTime
|
199
|
-
DateTime.parse(value)
|
200
|
-
when :Date
|
201
|
-
Date.parse(value)
|
202
|
-
when :String
|
203
|
-
value.to_s
|
204
|
-
when :Integer
|
205
|
-
value.to_i
|
206
|
-
when :Float
|
207
|
-
value.to_f
|
208
|
-
when :BOOLEAN
|
209
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
210
|
-
true
|
211
|
-
else
|
212
|
-
false
|
213
|
-
end
|
214
|
-
when :Object
|
215
|
-
# generic object (usually a Hash), return directly
|
216
|
-
value
|
217
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
218
|
-
inner_type = Regexp.last_match[:inner_type]
|
219
|
-
value.map { |v| _deserialize(inner_type, v) }
|
220
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
221
|
-
k_type = Regexp.last_match[:k_type]
|
222
|
-
v_type = Regexp.last_match[:v_type]
|
223
|
-
{}.tap do |hash|
|
224
|
-
value.each do |k, v|
|
225
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
226
|
-
end
|
227
|
-
end
|
228
|
-
else # model
|
229
|
-
temp_model = KatelloPulpApi.const_get(type).new
|
230
|
-
temp_model.build_from_hash(value)
|
231
|
-
end
|
232
|
-
end
|
233
|
-
|
234
|
-
# Returns the string representation of the object
|
235
|
-
# @return [String] String presentation of the object
|
236
|
-
def to_s
|
237
|
-
to_hash.to_s
|
238
|
-
end
|
239
|
-
|
240
|
-
# to_body is an alias to to_hash (backward compatibility)
|
241
|
-
# @return [Hash] Returns the object in the form of hash
|
242
|
-
def to_body
|
243
|
-
to_hash
|
244
|
-
end
|
245
|
-
|
246
|
-
# Returns the object in the form of hash
|
247
|
-
# @return [Hash] Returns the object in the form of hash
|
248
|
-
def to_hash
|
249
|
-
hash = {}
|
250
|
-
self.class.attribute_map.each_pair do |attr, param|
|
251
|
-
value = self.send(attr)
|
252
|
-
next if value.nil?
|
253
|
-
hash[param] = _to_hash(value)
|
254
|
-
end
|
255
|
-
hash
|
256
|
-
end
|
257
|
-
|
258
|
-
# Outputs non-array value in the form of hash
|
259
|
-
# For object, use to_hash. Otherwise, just return the value
|
260
|
-
# @param [Object] value Any valid value
|
261
|
-
# @return [Hash] Returns the value in the form of hash
|
262
|
-
def _to_hash(value)
|
263
|
-
if value.is_a?(Array)
|
264
|
-
value.compact.map{ |v| _to_hash(v) }
|
265
|
-
elsif value.is_a?(Hash)
|
266
|
-
{}.tap do |hash|
|
267
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
268
|
-
end
|
269
|
-
elsif value.respond_to? :to_hash
|
270
|
-
value.to_hash
|
271
|
-
else
|
272
|
-
value
|
273
|
-
end
|
274
|
-
end
|
275
|
-
|
276
|
-
end
|
277
|
-
|
278
|
-
end
|
@@ -1,194 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp3 API
|
3
|
-
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
-
|
6
|
-
OpenAPI spec version: v3
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module KatelloPulpApi
|
16
|
-
|
17
|
-
class AsyncOperationResponse
|
18
|
-
# The href of the task.
|
19
|
-
attr_accessor :task
|
20
|
-
|
21
|
-
|
22
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
-
def self.attribute_map
|
24
|
-
{
|
25
|
-
:'task' => :'task'
|
26
|
-
}
|
27
|
-
end
|
28
|
-
|
29
|
-
# Attribute type mapping.
|
30
|
-
def self.swagger_types
|
31
|
-
{
|
32
|
-
:'task' => :'String'
|
33
|
-
}
|
34
|
-
end
|
35
|
-
|
36
|
-
# Initializes the object
|
37
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
38
|
-
def initialize(attributes = {})
|
39
|
-
return unless attributes.is_a?(Hash)
|
40
|
-
|
41
|
-
# convert string to symbol for hash key
|
42
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
43
|
-
|
44
|
-
if attributes.has_key?(:'task')
|
45
|
-
self.task = attributes[:'task']
|
46
|
-
end
|
47
|
-
|
48
|
-
end
|
49
|
-
|
50
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
51
|
-
# @return Array for valid properties with the reasons
|
52
|
-
def list_invalid_properties
|
53
|
-
invalid_properties = Array.new
|
54
|
-
if @task.nil?
|
55
|
-
invalid_properties.push("invalid value for 'task', task cannot be nil.")
|
56
|
-
end
|
57
|
-
|
58
|
-
return invalid_properties
|
59
|
-
end
|
60
|
-
|
61
|
-
# Check to see if the all the properties in the model are valid
|
62
|
-
# @return true if the model is valid
|
63
|
-
def valid?
|
64
|
-
return false if @task.nil?
|
65
|
-
return true
|
66
|
-
end
|
67
|
-
|
68
|
-
# Checks equality by comparing each attribute.
|
69
|
-
# @param [Object] Object to be compared
|
70
|
-
def ==(o)
|
71
|
-
return true if self.equal?(o)
|
72
|
-
self.class == o.class &&
|
73
|
-
task == o.task
|
74
|
-
end
|
75
|
-
|
76
|
-
# @see the `==` method
|
77
|
-
# @param [Object] Object to be compared
|
78
|
-
def eql?(o)
|
79
|
-
self == o
|
80
|
-
end
|
81
|
-
|
82
|
-
# Calculates hash code according to all attributes.
|
83
|
-
# @return [Fixnum] Hash code
|
84
|
-
def hash
|
85
|
-
[task].hash
|
86
|
-
end
|
87
|
-
|
88
|
-
# Builds the object from hash
|
89
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
-
# @return [Object] Returns the model itself
|
91
|
-
def build_from_hash(attributes)
|
92
|
-
return nil unless attributes.is_a?(Hash)
|
93
|
-
self.class.swagger_types.each_pair do |key, type|
|
94
|
-
if type =~ /\AArray<(.*)>/i
|
95
|
-
# check to ensure the input is an array given that the the attribute
|
96
|
-
# is documented as an array but the input is not
|
97
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
98
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
99
|
-
end
|
100
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
101
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
102
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
103
|
-
end
|
104
|
-
|
105
|
-
self
|
106
|
-
end
|
107
|
-
|
108
|
-
# Deserializes the data based on type
|
109
|
-
# @param string type Data type
|
110
|
-
# @param string value Value to be deserialized
|
111
|
-
# @return [Object] Deserialized data
|
112
|
-
def _deserialize(type, value)
|
113
|
-
case type.to_sym
|
114
|
-
when :DateTime
|
115
|
-
DateTime.parse(value)
|
116
|
-
when :Date
|
117
|
-
Date.parse(value)
|
118
|
-
when :String
|
119
|
-
value.to_s
|
120
|
-
when :Integer
|
121
|
-
value.to_i
|
122
|
-
when :Float
|
123
|
-
value.to_f
|
124
|
-
when :BOOLEAN
|
125
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
126
|
-
true
|
127
|
-
else
|
128
|
-
false
|
129
|
-
end
|
130
|
-
when :Object
|
131
|
-
# generic object (usually a Hash), return directly
|
132
|
-
value
|
133
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
134
|
-
inner_type = Regexp.last_match[:inner_type]
|
135
|
-
value.map { |v| _deserialize(inner_type, v) }
|
136
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
137
|
-
k_type = Regexp.last_match[:k_type]
|
138
|
-
v_type = Regexp.last_match[:v_type]
|
139
|
-
{}.tap do |hash|
|
140
|
-
value.each do |k, v|
|
141
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
142
|
-
end
|
143
|
-
end
|
144
|
-
else # model
|
145
|
-
temp_model = KatelloPulpApi.const_get(type).new
|
146
|
-
temp_model.build_from_hash(value)
|
147
|
-
end
|
148
|
-
end
|
149
|
-
|
150
|
-
# Returns the string representation of the object
|
151
|
-
# @return [String] String presentation of the object
|
152
|
-
def to_s
|
153
|
-
to_hash.to_s
|
154
|
-
end
|
155
|
-
|
156
|
-
# to_body is an alias to to_hash (backward compatibility)
|
157
|
-
# @return [Hash] Returns the object in the form of hash
|
158
|
-
def to_body
|
159
|
-
to_hash
|
160
|
-
end
|
161
|
-
|
162
|
-
# Returns the object in the form of hash
|
163
|
-
# @return [Hash] Returns the object in the form of hash
|
164
|
-
def to_hash
|
165
|
-
hash = {}
|
166
|
-
self.class.attribute_map.each_pair do |attr, param|
|
167
|
-
value = self.send(attr)
|
168
|
-
next if value.nil?
|
169
|
-
hash[param] = _to_hash(value)
|
170
|
-
end
|
171
|
-
hash
|
172
|
-
end
|
173
|
-
|
174
|
-
# Outputs non-array value in the form of hash
|
175
|
-
# For object, use to_hash. Otherwise, just return the value
|
176
|
-
# @param [Object] value Any valid value
|
177
|
-
# @return [Hash] Returns the value in the form of hash
|
178
|
-
def _to_hash(value)
|
179
|
-
if value.is_a?(Array)
|
180
|
-
value.compact.map{ |v| _to_hash(v) }
|
181
|
-
elsif value.is_a?(Hash)
|
182
|
-
{}.tap do |hash|
|
183
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
184
|
-
end
|
185
|
-
elsif value.respond_to? :to_hash
|
186
|
-
value.to_hash
|
187
|
-
else
|
188
|
-
value
|
189
|
-
end
|
190
|
-
end
|
191
|
-
|
192
|
-
end
|
193
|
-
|
194
|
-
end
|