docusign_click 1.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/LICENSE +21 -0
- data/README.md +80 -0
- data/Rakefile +8 -0
- data/docusign_click-1.0.0.pre.alpha.gem +0 -0
- data/docusign_click-1.0.0.rc1.gem +0 -0
- data/docusign_click.gemspec +45 -0
- data/git_push.sh +55 -0
- data/lib/.DS_Store +0 -0
- data/lib/docusign_click.rb +62 -0
- data/lib/docusign_click/.DS_Store +0 -0
- data/lib/docusign_click/api/.DS_Store +0 -0
- data/lib/docusign_click/api/accounts_api.rb +1377 -0
- data/lib/docusign_click/client/.DS_Store +0 -0
- data/lib/docusign_click/client/api_client.rb +590 -0
- data/lib/docusign_click/client/api_error.rb +37 -0
- data/lib/docusign_click/client/auth/oauth.rb +1061 -0
- data/lib/docusign_click/configuration.rb +202 -0
- data/lib/docusign_click/models/clickwrap_agreements_response.rb +226 -0
- data/lib/docusign_click/models/clickwrap_delete_response.rb +224 -0
- data/lib/docusign_click/models/clickwrap_request.rb +294 -0
- data/lib/docusign_click/models/clickwrap_scheduled_reacceptance.rb +204 -0
- data/lib/docusign_click/models/clickwrap_transfer_request.rb +194 -0
- data/lib/docusign_click/models/clickwrap_version.rb +283 -0
- data/lib/docusign_click/models/clickwrap_version_delete_response.rb +303 -0
- data/lib/docusign_click/models/clickwrap_version_response.rb +334 -0
- data/lib/docusign_click/models/clickwrap_version_summary_response.rb +313 -0
- data/lib/docusign_click/models/clickwrap_versions_delete_response.rb +206 -0
- data/lib/docusign_click/models/clickwrap_versions_paged_response.rb +246 -0
- data/lib/docusign_click/models/clickwrap_versions_response.rb +216 -0
- data/lib/docusign_click/models/clickwraps_delete_response.rb +186 -0
- data/lib/docusign_click/models/conversion_document.rb +204 -0
- data/lib/docusign_click/models/display_settings.rb +356 -0
- data/lib/docusign_click/models/document.rb +224 -0
- data/lib/docusign_click/models/document_conversion_request.rb +186 -0
- data/lib/docusign_click/models/document_conversion_response.rb +186 -0
- data/lib/docusign_click/models/error_details.rb +194 -0
- data/lib/docusign_click/models/html_result.rb +194 -0
- data/lib/docusign_click/models/recipient_copy_request.rb +184 -0
- data/lib/docusign_click/models/service_information.rb +238 -0
- data/lib/docusign_click/models/service_version.rb +194 -0
- data/lib/docusign_click/models/update_agreement_request.rb +194 -0
- data/lib/docusign_click/models/user_agreement_request.rb +204 -0
- data/lib/docusign_click/models/user_agreement_response.rb +335 -0
- data/lib/docusign_click/version.rb +14 -0
- data/tests/Gemfile +5 -0
- data/tests/Gemfile.lock +42 -0
- data/tests/docs/Test.pdf +0 -0
- data/tests/docs/private.pem +27 -0
- data/tests/spec/unit_tests_using_jwt_spec.rb +126 -0
- metadata +297 -0
@@ -0,0 +1,194 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign Click API
|
3
|
+
|
4
|
+
#DocuSign Click lets you capture consent to standard agreement terms with a single click: terms and conditions, terms of service, terms of use, privacy policies, and more. The Click API lets you include this customizable clickwrap solution in your DocuSign integrations.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
Contact: devcenter@docusign.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module DocuSign_Click
|
15
|
+
class ClickwrapTransferRequest
|
16
|
+
#
|
17
|
+
attr_accessor :transfer_from_user_id
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :transfer_to_user_id
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'transfer_from_user_id' => :'transferFromUserId',
|
26
|
+
:'transfer_to_user_id' => :'transferToUserId'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Attribute type mapping.
|
31
|
+
def self.swagger_types
|
32
|
+
{
|
33
|
+
:'transfer_from_user_id' => :'String',
|
34
|
+
:'transfer_to_user_id' => :'String'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Initializes the object
|
39
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
40
|
+
def initialize(attributes = {})
|
41
|
+
return unless attributes.is_a?(Hash)
|
42
|
+
|
43
|
+
# convert string to symbol for hash key
|
44
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
45
|
+
|
46
|
+
if attributes.has_key?(:'transferFromUserId')
|
47
|
+
self.transfer_from_user_id = attributes[:'transferFromUserId']
|
48
|
+
end
|
49
|
+
|
50
|
+
if attributes.has_key?(:'transferToUserId')
|
51
|
+
self.transfer_to_user_id = attributes[:'transferToUserId']
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
56
|
+
# @return Array for valid properties with the reasons
|
57
|
+
def list_invalid_properties
|
58
|
+
invalid_properties = Array.new
|
59
|
+
invalid_properties
|
60
|
+
end
|
61
|
+
|
62
|
+
# Check to see if the all the properties in the model are valid
|
63
|
+
# @return true if the model is valid
|
64
|
+
def valid?
|
65
|
+
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
|
+
transfer_from_user_id == o.transfer_from_user_id &&
|
74
|
+
transfer_to_user_id == o.transfer_to_user_id
|
75
|
+
end
|
76
|
+
|
77
|
+
# @see the `==` method
|
78
|
+
# @param [Object] Object to be compared
|
79
|
+
def eql?(o)
|
80
|
+
self == o
|
81
|
+
end
|
82
|
+
|
83
|
+
# Calculates hash code according to all attributes.
|
84
|
+
# @return [Fixnum] Hash code
|
85
|
+
def hash
|
86
|
+
[transfer_from_user_id, transfer_to_user_id].hash
|
87
|
+
end
|
88
|
+
|
89
|
+
# Builds the object from hash
|
90
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
91
|
+
# @return [Object] Returns the model itself
|
92
|
+
def build_from_hash(attributes)
|
93
|
+
return nil unless attributes.is_a?(Hash)
|
94
|
+
self.class.swagger_types.each_pair do |key, type|
|
95
|
+
if type =~ /\AArray<(.*)>/i
|
96
|
+
# check to ensure the input is an array given that the attribute
|
97
|
+
# is documented as an array but the input is not
|
98
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
99
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
100
|
+
end
|
101
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
102
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
103
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
104
|
+
end
|
105
|
+
|
106
|
+
self
|
107
|
+
end
|
108
|
+
|
109
|
+
# Deserializes the data based on type
|
110
|
+
# @param string type Data type
|
111
|
+
# @param string value Value to be deserialized
|
112
|
+
# @return [Object] Deserialized data
|
113
|
+
def _deserialize(type, value)
|
114
|
+
case type.to_sym
|
115
|
+
when :DateTime
|
116
|
+
DateTime.parse(value)
|
117
|
+
when :Date
|
118
|
+
Date.parse(value)
|
119
|
+
when :String
|
120
|
+
value.to_s
|
121
|
+
when :Integer
|
122
|
+
value.to_i
|
123
|
+
when :Float
|
124
|
+
value.to_f
|
125
|
+
when :BOOLEAN
|
126
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
127
|
+
true
|
128
|
+
else
|
129
|
+
false
|
130
|
+
end
|
131
|
+
when :Object
|
132
|
+
# generic object (usually a Hash), return directly
|
133
|
+
value
|
134
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
135
|
+
inner_type = Regexp.last_match[:inner_type]
|
136
|
+
value.map { |v| _deserialize(inner_type, v) }
|
137
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
138
|
+
k_type = Regexp.last_match[:k_type]
|
139
|
+
v_type = Regexp.last_match[:v_type]
|
140
|
+
{}.tap do |hash|
|
141
|
+
value.each do |k, v|
|
142
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
else # model
|
146
|
+
temp_model = DocuSign_Click.const_get(type).new
|
147
|
+
temp_model.build_from_hash(value)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
# Returns the string representation of the object
|
152
|
+
# @return [String] String presentation of the object
|
153
|
+
def to_s
|
154
|
+
to_hash.to_s
|
155
|
+
end
|
156
|
+
|
157
|
+
# to_body is an alias to to_hash (backward compatibility)
|
158
|
+
# @return [Hash] Returns the object in the form of hash
|
159
|
+
def to_body
|
160
|
+
to_hash
|
161
|
+
end
|
162
|
+
|
163
|
+
# Returns the object in the form of hash
|
164
|
+
# @return [Hash] Returns the object in the form of hash
|
165
|
+
def to_hash
|
166
|
+
hash = {}
|
167
|
+
self.class.attribute_map.each_pair do |attr, param|
|
168
|
+
value = self.send(attr)
|
169
|
+
next if value.nil?
|
170
|
+
hash[param] = _to_hash(value)
|
171
|
+
end
|
172
|
+
hash
|
173
|
+
end
|
174
|
+
|
175
|
+
# Outputs non-array value in the form of hash
|
176
|
+
# For object, use to_hash. Otherwise, just return the value
|
177
|
+
# @param [Object] value Any valid value
|
178
|
+
# @return [Hash] Returns the value in the form of hash
|
179
|
+
def _to_hash(value)
|
180
|
+
if value.is_a?(Array)
|
181
|
+
value.compact.map { |v| _to_hash(v) }
|
182
|
+
elsif value.is_a?(Hash)
|
183
|
+
{}.tap do |hash|
|
184
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
185
|
+
end
|
186
|
+
elsif value.respond_to? :to_hash
|
187
|
+
value.to_hash
|
188
|
+
else
|
189
|
+
value
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
end
|
194
|
+
end
|
@@ -0,0 +1,283 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign Click API
|
3
|
+
|
4
|
+
#DocuSign Click lets you capture consent to standard agreement terms with a single click: terms and conditions, terms of service, terms of use, privacy policies, and more. The Click API lets you include this customizable clickwrap solution in your DocuSign integrations.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
Contact: devcenter@docusign.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module DocuSign_Click
|
15
|
+
class ClickwrapVersion
|
16
|
+
#
|
17
|
+
attr_accessor :clickwrap_version_id
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :created_time
|
21
|
+
|
22
|
+
#
|
23
|
+
attr_accessor :last_modified
|
24
|
+
|
25
|
+
#
|
26
|
+
attr_accessor :last_modified_by
|
27
|
+
|
28
|
+
#
|
29
|
+
attr_accessor :owner_user_id
|
30
|
+
|
31
|
+
#
|
32
|
+
attr_accessor :require_reacceptance
|
33
|
+
|
34
|
+
#
|
35
|
+
attr_accessor :scheduled_date
|
36
|
+
|
37
|
+
attr_accessor :scheduled_reacceptance
|
38
|
+
|
39
|
+
#
|
40
|
+
attr_accessor :status
|
41
|
+
|
42
|
+
#
|
43
|
+
attr_accessor :version_id
|
44
|
+
|
45
|
+
#
|
46
|
+
attr_accessor :version_number
|
47
|
+
|
48
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
49
|
+
def self.attribute_map
|
50
|
+
{
|
51
|
+
:'clickwrap_version_id' => :'clickwrapVersionId',
|
52
|
+
:'created_time' => :'createdTime',
|
53
|
+
:'last_modified' => :'lastModified',
|
54
|
+
:'last_modified_by' => :'lastModifiedBy',
|
55
|
+
:'owner_user_id' => :'ownerUserId',
|
56
|
+
:'require_reacceptance' => :'requireReacceptance',
|
57
|
+
:'scheduled_date' => :'scheduledDate',
|
58
|
+
:'scheduled_reacceptance' => :'scheduledReacceptance',
|
59
|
+
:'status' => :'status',
|
60
|
+
:'version_id' => :'versionId',
|
61
|
+
:'version_number' => :'versionNumber'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Attribute type mapping.
|
66
|
+
def self.swagger_types
|
67
|
+
{
|
68
|
+
:'clickwrap_version_id' => :'String',
|
69
|
+
:'created_time' => :'Object',
|
70
|
+
:'last_modified' => :'Object',
|
71
|
+
:'last_modified_by' => :'String',
|
72
|
+
:'owner_user_id' => :'String',
|
73
|
+
:'require_reacceptance' => :'BOOLEAN',
|
74
|
+
:'scheduled_date' => :'Object',
|
75
|
+
:'scheduled_reacceptance' => :'ClickwrapScheduledReacceptance',
|
76
|
+
:'status' => :'String',
|
77
|
+
:'version_id' => :'String',
|
78
|
+
:'version_number' => :'String'
|
79
|
+
}
|
80
|
+
end
|
81
|
+
|
82
|
+
# Initializes the object
|
83
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
84
|
+
def initialize(attributes = {})
|
85
|
+
return unless attributes.is_a?(Hash)
|
86
|
+
|
87
|
+
# convert string to symbol for hash key
|
88
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
89
|
+
|
90
|
+
if attributes.has_key?(:'clickwrapVersionId')
|
91
|
+
self.clickwrap_version_id = attributes[:'clickwrapVersionId']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.has_key?(:'createdTime')
|
95
|
+
self.created_time = attributes[:'createdTime']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.has_key?(:'lastModified')
|
99
|
+
self.last_modified = attributes[:'lastModified']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.has_key?(:'lastModifiedBy')
|
103
|
+
self.last_modified_by = attributes[:'lastModifiedBy']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.has_key?(:'ownerUserId')
|
107
|
+
self.owner_user_id = attributes[:'ownerUserId']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.has_key?(:'requireReacceptance')
|
111
|
+
self.require_reacceptance = attributes[:'requireReacceptance']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.has_key?(:'scheduledDate')
|
115
|
+
self.scheduled_date = attributes[:'scheduledDate']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.has_key?(:'scheduledReacceptance')
|
119
|
+
self.scheduled_reacceptance = attributes[:'scheduledReacceptance']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.has_key?(:'status')
|
123
|
+
self.status = attributes[:'status']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.has_key?(:'versionId')
|
127
|
+
self.version_id = attributes[:'versionId']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.has_key?(:'versionNumber')
|
131
|
+
self.version_number = attributes[:'versionNumber']
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
136
|
+
# @return Array for valid properties with the reasons
|
137
|
+
def list_invalid_properties
|
138
|
+
invalid_properties = Array.new
|
139
|
+
invalid_properties
|
140
|
+
end
|
141
|
+
|
142
|
+
# Check to see if the all the properties in the model are valid
|
143
|
+
# @return true if the model is valid
|
144
|
+
def valid?
|
145
|
+
true
|
146
|
+
end
|
147
|
+
|
148
|
+
# Checks equality by comparing each attribute.
|
149
|
+
# @param [Object] Object to be compared
|
150
|
+
def ==(o)
|
151
|
+
return true if self.equal?(o)
|
152
|
+
self.class == o.class &&
|
153
|
+
clickwrap_version_id == o.clickwrap_version_id &&
|
154
|
+
created_time == o.created_time &&
|
155
|
+
last_modified == o.last_modified &&
|
156
|
+
last_modified_by == o.last_modified_by &&
|
157
|
+
owner_user_id == o.owner_user_id &&
|
158
|
+
require_reacceptance == o.require_reacceptance &&
|
159
|
+
scheduled_date == o.scheduled_date &&
|
160
|
+
scheduled_reacceptance == o.scheduled_reacceptance &&
|
161
|
+
status == o.status &&
|
162
|
+
version_id == o.version_id &&
|
163
|
+
version_number == o.version_number
|
164
|
+
end
|
165
|
+
|
166
|
+
# @see the `==` method
|
167
|
+
# @param [Object] Object to be compared
|
168
|
+
def eql?(o)
|
169
|
+
self == o
|
170
|
+
end
|
171
|
+
|
172
|
+
# Calculates hash code according to all attributes.
|
173
|
+
# @return [Fixnum] Hash code
|
174
|
+
def hash
|
175
|
+
[clickwrap_version_id, created_time, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
|
176
|
+
end
|
177
|
+
|
178
|
+
# Builds the object from hash
|
179
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
180
|
+
# @return [Object] Returns the model itself
|
181
|
+
def build_from_hash(attributes)
|
182
|
+
return nil unless attributes.is_a?(Hash)
|
183
|
+
self.class.swagger_types.each_pair do |key, type|
|
184
|
+
if type =~ /\AArray<(.*)>/i
|
185
|
+
# check to ensure the input is an array given that the attribute
|
186
|
+
# is documented as an array but the input is not
|
187
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
188
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
189
|
+
end
|
190
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
191
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
192
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
193
|
+
end
|
194
|
+
|
195
|
+
self
|
196
|
+
end
|
197
|
+
|
198
|
+
# Deserializes the data based on type
|
199
|
+
# @param string type Data type
|
200
|
+
# @param string value Value to be deserialized
|
201
|
+
# @return [Object] Deserialized data
|
202
|
+
def _deserialize(type, value)
|
203
|
+
case type.to_sym
|
204
|
+
when :DateTime
|
205
|
+
DateTime.parse(value)
|
206
|
+
when :Date
|
207
|
+
Date.parse(value)
|
208
|
+
when :String
|
209
|
+
value.to_s
|
210
|
+
when :Integer
|
211
|
+
value.to_i
|
212
|
+
when :Float
|
213
|
+
value.to_f
|
214
|
+
when :BOOLEAN
|
215
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
216
|
+
true
|
217
|
+
else
|
218
|
+
false
|
219
|
+
end
|
220
|
+
when :Object
|
221
|
+
# generic object (usually a Hash), return directly
|
222
|
+
value
|
223
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
224
|
+
inner_type = Regexp.last_match[:inner_type]
|
225
|
+
value.map { |v| _deserialize(inner_type, v) }
|
226
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
227
|
+
k_type = Regexp.last_match[:k_type]
|
228
|
+
v_type = Regexp.last_match[:v_type]
|
229
|
+
{}.tap do |hash|
|
230
|
+
value.each do |k, v|
|
231
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
232
|
+
end
|
233
|
+
end
|
234
|
+
else # model
|
235
|
+
temp_model = DocuSign_Click.const_get(type).new
|
236
|
+
temp_model.build_from_hash(value)
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
# Returns the string representation of the object
|
241
|
+
# @return [String] String presentation of the object
|
242
|
+
def to_s
|
243
|
+
to_hash.to_s
|
244
|
+
end
|
245
|
+
|
246
|
+
# to_body is an alias to to_hash (backward compatibility)
|
247
|
+
# @return [Hash] Returns the object in the form of hash
|
248
|
+
def to_body
|
249
|
+
to_hash
|
250
|
+
end
|
251
|
+
|
252
|
+
# Returns the object in the form of hash
|
253
|
+
# @return [Hash] Returns the object in the form of hash
|
254
|
+
def to_hash
|
255
|
+
hash = {}
|
256
|
+
self.class.attribute_map.each_pair do |attr, param|
|
257
|
+
value = self.send(attr)
|
258
|
+
next if value.nil?
|
259
|
+
hash[param] = _to_hash(value)
|
260
|
+
end
|
261
|
+
hash
|
262
|
+
end
|
263
|
+
|
264
|
+
# Outputs non-array value in the form of hash
|
265
|
+
# For object, use to_hash. Otherwise, just return the value
|
266
|
+
# @param [Object] value Any valid value
|
267
|
+
# @return [Hash] Returns the value in the form of hash
|
268
|
+
def _to_hash(value)
|
269
|
+
if value.is_a?(Array)
|
270
|
+
value.compact.map { |v| _to_hash(v) }
|
271
|
+
elsif value.is_a?(Hash)
|
272
|
+
{}.tap do |hash|
|
273
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
274
|
+
end
|
275
|
+
elsif value.respond_to? :to_hash
|
276
|
+
value.to_hash
|
277
|
+
else
|
278
|
+
value
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
end
|
283
|
+
end
|