gopad 1.13.0 → 1.14.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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +3 -3
  4. data/lib/gopad/api/auth_api.rb +99 -47
  5. data/lib/gopad/api/{team_api.rb → group_api.rb} +175 -185
  6. data/lib/gopad/api/profile_api.rb +12 -12
  7. data/lib/gopad/api/user_api.rb +99 -109
  8. data/lib/gopad/configuration.rb +0 -7
  9. data/lib/gopad/models/{users.rb → create_group_request.rb} +19 -17
  10. data/lib/gopad/models/create_user_request.rb +258 -0
  11. data/lib/gopad/models/{teams.rb → delete_group_from_user_request.rb} +20 -20
  12. data/lib/gopad/models/{team_users.rb → delete_user_from_group_request.rb} +20 -27
  13. data/lib/gopad/models/{team.rb → group.rb} +9 -17
  14. data/lib/gopad/models/{user_team_params.rb → list_group_users200_response.rb} +61 -58
  15. data/lib/gopad/models/list_groups200_response.rb +260 -0
  16. data/lib/gopad/models/list_providers200_response.rb +236 -0
  17. data/lib/gopad/models/{team_user_params.rb → list_user_groups200_response.rb} +59 -56
  18. data/lib/gopad/models/list_users200_response.rb +260 -0
  19. data/lib/gopad/models/{auth_login.rb → login_auth_request.rb} +4 -3
  20. data/lib/gopad/models/permit_group_user_request.rb +232 -0
  21. data/lib/gopad/models/permit_user_group_request.rb +232 -0
  22. data/lib/gopad/models/profile.rb +8 -8
  23. data/lib/gopad/models/{user_teams.rb → provider.rb} +28 -21
  24. data/lib/gopad/models/update_profile_request.rb +238 -0
  25. data/lib/gopad/models/update_user_request.rb +254 -0
  26. data/lib/gopad/models/user.rb +5 -13
  27. data/lib/gopad/models/{user_team.rb → user_group.rb} +22 -22
  28. data/lib/gopad/version.rb +1 -1
  29. data/lib/gopad.rb +18 -10
  30. metadata +20 -12
@@ -0,0 +1,232 @@
1
+ # Gopad OpenAPI
2
+ #
3
+ # API definition for Gopad, Etherpad for markdown with go
4
+ #
5
+ # The version of the OpenAPI document: 1.0.0-alpha1
6
+ # Contact: gopad@webhippie.de
7
+ # Generated by: https://openapi-generator.tech
8
+ # Generator version: 7.6.0
9
+ #
10
+
11
+ require 'date'
12
+ require 'time'
13
+
14
+ module Gopad
15
+ class PermitUserGroupRequest
16
+ attr_accessor :group, :perm
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ group: :group,
22
+ perm: :perm
23
+ }
24
+ end
25
+
26
+ # Returns all the JSON keys this model knows about
27
+ def self.acceptable_attributes
28
+ attribute_map.values
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.openapi_types
33
+ {
34
+ group: :String,
35
+ perm: :String
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ unless attributes.is_a?(Hash)
49
+ raise ArgumentError, 'The input argument (attributes) must be a hash in `Gopad::PermitUserGroupRequest` initialize method'
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) do |(k, v), h|
54
+ unless self.class.attribute_map.key?(k.to_sym)
55
+ raise ArgumentError,
56
+ "`#{k}` is not a valid attribute in `Gopad::PermitUserGroupRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ end
58
+
59
+ h[k.to_sym] = v
60
+ end
61
+
62
+ self.group = if attributes.key?(:group)
63
+ attributes[:group]
64
+ end
65
+
66
+ self.perm = if attributes.key?(:perm)
67
+ attributes[:perm]
68
+ end
69
+ end
70
+
71
+ # Show invalid properties with the reasons. Usually used together with valid?
72
+ # @return Array for valid properties with the reasons
73
+ def list_invalid_properties
74
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
75
+ invalid_properties = []
76
+ if @group.nil?
77
+ invalid_properties.push('invalid value for "group", group cannot be nil.')
78
+ end
79
+
80
+ if @perm.nil?
81
+ invalid_properties.push('invalid value for "perm", perm cannot be nil.')
82
+ end
83
+
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ warn '[DEPRECATED] the `valid?` method is obsolete'
91
+ return false if @group.nil?
92
+ return false if @perm.nil?
93
+
94
+ true
95
+ end
96
+
97
+ # Checks equality by comparing each attribute.
98
+ # @param [Object] Object to be compared
99
+ def ==(other)
100
+ return true if equal?(other)
101
+
102
+ self.class == other.class &&
103
+ group == other.group &&
104
+ perm == other.perm
105
+ end
106
+
107
+ # @see the `==` method
108
+ # @param [Object] Object to be compared
109
+ def eql?(other)
110
+ self == other
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Integer] Hash code
115
+ def hash
116
+ [group, perm].hash
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def self.build_from_hash(attributes)
123
+ return nil unless attributes.is_a?(Hash)
124
+
125
+ attributes = attributes.transform_keys(&:to_sym)
126
+ transformed_hash = {}
127
+ openapi_types.each_pair do |key, type|
128
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
129
+ transformed_hash[key.to_s] = nil
130
+ elsif type =~ /\AArray<(.*)>/i
131
+ # check to ensure the input is an array given that the attribute
132
+ # is documented as an array but the input is not
133
+ if attributes[attribute_map[key]].is_a?(Array)
134
+ transformed_hash[key.to_s] = attributes[attribute_map[key]].map { |v| _deserialize(::Regexp.last_match(1), v) }
135
+ end
136
+ elsif !attributes[attribute_map[key]].nil?
137
+ transformed_hash[key.to_s] = _deserialize(type, attributes[attribute_map[key]])
138
+ end
139
+ end
140
+ new(transformed_hash)
141
+ end
142
+
143
+ # Deserializes the data based on type
144
+ # @param string type Data type
145
+ # @param string value Value to be deserialized
146
+ # @return [Object] Deserialized data
147
+ def self._deserialize(type, value)
148
+ case type.to_sym
149
+ when :Time
150
+ Time.parse(value)
151
+ when :Date
152
+ Date.parse(value)
153
+ when :String
154
+ value.to_s
155
+ when :Integer
156
+ value.to_i
157
+ when :Float
158
+ value.to_f
159
+ when :Boolean
160
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
161
+ true
162
+ else
163
+ false
164
+ end
165
+ when :Object
166
+ # generic object (usually a Hash), return directly
167
+ value
168
+ when /\AArray<(?<inner_type>.+)>\z/
169
+ inner_type = Regexp.last_match[:inner_type]
170
+ value.map { |v| _deserialize(inner_type, v) }
171
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
172
+ k_type = Regexp.last_match[:k_type]
173
+ v_type = Regexp.last_match[:v_type]
174
+ {}.tap do |hash|
175
+ value.each do |k, v|
176
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
177
+ end
178
+ end
179
+ else # model
180
+ # models (e.g. Pet) or oneOf
181
+ klass = Gopad.const_get(type)
182
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
183
+ end
184
+ end
185
+
186
+ # Returns the string representation of the object
187
+ # @return [String] String presentation of the object
188
+ def to_s
189
+ to_hash.to_s
190
+ end
191
+
192
+ # to_body is an alias to to_hash (backward compatibility)
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_body
195
+ to_hash
196
+ end
197
+
198
+ # Returns the object in the form of hash
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_hash
201
+ hash = {}
202
+ self.class.attribute_map.each_pair do |attr, param|
203
+ value = send(attr)
204
+ if value.nil?
205
+ is_nullable = self.class.openapi_nullable.include?(attr)
206
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
207
+ end
208
+
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map { |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+ end
232
+ end
@@ -14,7 +14,7 @@ require 'time'
14
14
  module Gopad
15
15
  # Model to represent profile
16
16
  class Profile
17
- attr_accessor :id, :username, :password, :email, :fullname, :profile, :admin, :active, :created_at, :updated_at, :auths, :teams
17
+ attr_accessor :id, :username, :password, :email, :fullname, :profile, :admin, :active, :created_at, :updated_at, :auths, :groups
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
@@ -30,7 +30,7 @@ module Gopad
30
30
  created_at: :created_at,
31
31
  updated_at: :updated_at,
32
32
  auths: :auths,
33
- teams: :teams
33
+ groups: :groups
34
34
  }
35
35
  end
36
36
 
@@ -53,7 +53,7 @@ module Gopad
53
53
  created_at: :Time,
54
54
  updated_at: :Time,
55
55
  auths: :'Array<UserAuth>',
56
- teams: :'Array<UserTeam>'
56
+ groups: :'Array<UserGroup>'
57
57
  }
58
58
  end
59
59
 
@@ -66,7 +66,7 @@ module Gopad
66
66
  fullname
67
67
  profile
68
68
  auths
69
- teams
69
+ groups
70
70
  ])
71
71
  end
72
72
 
@@ -130,8 +130,8 @@ module Gopad
130
130
  self.auths = value
131
131
  end
132
132
 
133
- if attributes.key?(:teams) && (value = attributes[:teams]).is_a?(Array)
134
- self.teams = value
133
+ if attributes.key?(:groups) && (value = attributes[:groups]).is_a?(Array)
134
+ self.groups = value
135
135
  end
136
136
  end
137
137
 
@@ -166,7 +166,7 @@ module Gopad
166
166
  created_at == other.created_at &&
167
167
  updated_at == other.updated_at &&
168
168
  auths == other.auths &&
169
- teams == other.teams
169
+ groups == other.groups
170
170
  end
171
171
 
172
172
  # @see the `==` method
@@ -178,7 +178,7 @@ module Gopad
178
178
  # Calculates hash code according to all attributes.
179
179
  # @return [Integer] Hash code
180
180
  def hash
181
- [id, username, password, email, fullname, profile, admin, active, created_at, updated_at, auths, teams].hash
181
+ [id, username, password, email, fullname, profile, admin, active, created_at, updated_at, auths, groups].hash
182
182
  end
183
183
 
184
184
  # Builds the object from hash
@@ -12,16 +12,17 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Gopad
15
- # Model to represent user teams
16
- class UserTeams
17
- attr_accessor :user, :total, :teams
15
+ # Model to represent auth provider
16
+ class Provider
17
+ attr_accessor :name, :driver, :display, :icon
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
- user: :user,
23
- total: :total,
24
- teams: :teams
22
+ name: :name,
23
+ driver: :driver,
24
+ display: :display,
25
+ icon: :icon
25
26
  }
26
27
  end
27
28
 
@@ -33,9 +34,10 @@ module Gopad
33
34
  # Attribute type mapping.
34
35
  def self.openapi_types
35
36
  {
36
- user: :User,
37
- total: :Integer,
38
- teams: :'Array<UserTeam>'
37
+ name: :String,
38
+ driver: :String,
39
+ display: :String,
40
+ icon: :String
39
41
  }
40
42
  end
41
43
 
@@ -49,28 +51,32 @@ module Gopad
49
51
  # @param [Hash] attributes Model attributes in the form of hash
50
52
  def initialize(attributes = {})
51
53
  unless attributes.is_a?(Hash)
52
- raise ArgumentError, 'The input argument (attributes) must be a hash in `Gopad::UserTeams` initialize method'
54
+ raise ArgumentError, 'The input argument (attributes) must be a hash in `Gopad::Provider` initialize method'
53
55
  end
54
56
 
55
57
  # check to see if the attribute exists and convert string to symbol for hash key
56
58
  attributes = attributes.each_with_object({}) do |(k, v), h|
57
59
  unless self.class.attribute_map.key?(k.to_sym)
58
- raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::UserTeams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::Provider`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
61
  end
60
62
 
61
63
  h[k.to_sym] = v
62
64
  end
63
65
 
64
- if attributes.key?(:user)
65
- self.user = attributes[:user]
66
+ if attributes.key?(:name)
67
+ self.name = attributes[:name]
66
68
  end
67
69
 
68
- if attributes.key?(:total)
69
- self.total = attributes[:total]
70
+ if attributes.key?(:driver)
71
+ self.driver = attributes[:driver]
70
72
  end
71
73
 
72
- if attributes.key?(:teams) && (value = attributes[:teams]).is_a?(Array)
73
- self.teams = value
74
+ if attributes.key?(:display)
75
+ self.display = attributes[:display]
76
+ end
77
+
78
+ if attributes.key?(:icon)
79
+ self.icon = attributes[:icon]
74
80
  end
75
81
  end
76
82
 
@@ -94,9 +100,10 @@ module Gopad
94
100
  return true if equal?(other)
95
101
 
96
102
  self.class == other.class &&
97
- user == other.user &&
98
- total == other.total &&
99
- teams == other.teams
103
+ name == other.name &&
104
+ driver == other.driver &&
105
+ display == other.display &&
106
+ icon == other.icon
100
107
  end
101
108
 
102
109
  # @see the `==` method
@@ -108,7 +115,7 @@ module Gopad
108
115
  # Calculates hash code according to all attributes.
109
116
  # @return [Integer] Hash code
110
117
  def hash
111
- [user, total, teams].hash
118
+ [name, driver, display, icon].hash
112
119
  end
113
120
 
114
121
  # Builds the object from hash
@@ -0,0 +1,238 @@
1
+ # Gopad OpenAPI
2
+ #
3
+ # API definition for Gopad, Etherpad for markdown with go
4
+ #
5
+ # The version of the OpenAPI document: 1.0.0-alpha1
6
+ # Contact: gopad@webhippie.de
7
+ # Generated by: https://openapi-generator.tech
8
+ # Generator version: 7.6.0
9
+ #
10
+
11
+ require 'date'
12
+ require 'time'
13
+
14
+ module Gopad
15
+ class UpdateProfileRequest
16
+ attr_accessor :username, :password, :email, :fullname
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ username: :username,
22
+ password: :password,
23
+ email: :email,
24
+ fullname: :fullname
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ username: :String,
37
+ password: :String,
38
+ email: :String,
39
+ fullname: :String
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new(%i[
46
+ username
47
+ password
48
+ email
49
+ fullname
50
+ ])
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ unless attributes.is_a?(Hash)
57
+ raise ArgumentError, 'The input argument (attributes) must be a hash in `Gopad::UpdateProfileRequest` initialize method'
58
+ end
59
+
60
+ # check to see if the attribute exists and convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) do |(k, v), h|
62
+ unless self.class.attribute_map.key?(k.to_sym)
63
+ raise ArgumentError,
64
+ "`#{k}` is not a valid attribute in `Gopad::UpdateProfileRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ end
66
+
67
+ h[k.to_sym] = v
68
+ end
69
+
70
+ if attributes.key?(:username)
71
+ self.username = attributes[:username]
72
+ end
73
+
74
+ if attributes.key?(:password)
75
+ self.password = attributes[:password]
76
+ end
77
+
78
+ if attributes.key?(:email)
79
+ self.email = attributes[:email]
80
+ end
81
+
82
+ if attributes.key?(:fullname)
83
+ self.fullname = attributes[:fullname]
84
+ end
85
+ end
86
+
87
+ # Show invalid properties with the reasons. Usually used together with valid?
88
+ # @return Array for valid properties with the reasons
89
+ def list_invalid_properties
90
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
91
+ []
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ warn '[DEPRECATED] the `valid?` method is obsolete'
98
+ true
99
+ end
100
+
101
+ # Checks equality by comparing each attribute.
102
+ # @param [Object] Object to be compared
103
+ def ==(other)
104
+ return true if equal?(other)
105
+
106
+ self.class == other.class &&
107
+ username == other.username &&
108
+ password == other.password &&
109
+ email == other.email &&
110
+ fullname == other.fullname
111
+ end
112
+
113
+ # @see the `==` method
114
+ # @param [Object] Object to be compared
115
+ def eql?(other)
116
+ self == other
117
+ end
118
+
119
+ # Calculates hash code according to all attributes.
120
+ # @return [Integer] Hash code
121
+ def hash
122
+ [username, password, email, fullname].hash
123
+ end
124
+
125
+ # Builds the object from hash
126
+ # @param [Hash] attributes Model attributes in the form of hash
127
+ # @return [Object] Returns the model itself
128
+ def self.build_from_hash(attributes)
129
+ return nil unless attributes.is_a?(Hash)
130
+
131
+ attributes = attributes.transform_keys(&:to_sym)
132
+ transformed_hash = {}
133
+ openapi_types.each_pair do |key, type|
134
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
135
+ transformed_hash[key.to_s] = nil
136
+ elsif type =~ /\AArray<(.*)>/i
137
+ # check to ensure the input is an array given that the attribute
138
+ # is documented as an array but the input is not
139
+ if attributes[attribute_map[key]].is_a?(Array)
140
+ transformed_hash[key.to_s] = attributes[attribute_map[key]].map { |v| _deserialize(::Regexp.last_match(1), v) }
141
+ end
142
+ elsif !attributes[attribute_map[key]].nil?
143
+ transformed_hash[key.to_s] = _deserialize(type, attributes[attribute_map[key]])
144
+ end
145
+ end
146
+ new(transformed_hash)
147
+ end
148
+
149
+ # Deserializes the data based on type
150
+ # @param string type Data type
151
+ # @param string value Value to be deserialized
152
+ # @return [Object] Deserialized data
153
+ def self._deserialize(type, value)
154
+ case type.to_sym
155
+ when :Time
156
+ Time.parse(value)
157
+ when :Date
158
+ Date.parse(value)
159
+ when :String
160
+ value.to_s
161
+ when :Integer
162
+ value.to_i
163
+ when :Float
164
+ value.to_f
165
+ when :Boolean
166
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
167
+ true
168
+ else
169
+ false
170
+ end
171
+ when :Object
172
+ # generic object (usually a Hash), return directly
173
+ value
174
+ when /\AArray<(?<inner_type>.+)>\z/
175
+ inner_type = Regexp.last_match[:inner_type]
176
+ value.map { |v| _deserialize(inner_type, v) }
177
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
178
+ k_type = Regexp.last_match[:k_type]
179
+ v_type = Regexp.last_match[:v_type]
180
+ {}.tap do |hash|
181
+ value.each do |k, v|
182
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
183
+ end
184
+ end
185
+ else # model
186
+ # models (e.g. Pet) or oneOf
187
+ klass = Gopad.const_get(type)
188
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
189
+ end
190
+ end
191
+
192
+ # Returns the string representation of the object
193
+ # @return [String] String presentation of the object
194
+ def to_s
195
+ to_hash.to_s
196
+ end
197
+
198
+ # to_body is an alias to to_hash (backward compatibility)
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_body
201
+ to_hash
202
+ end
203
+
204
+ # Returns the object in the form of hash
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_hash
207
+ hash = {}
208
+ self.class.attribute_map.each_pair do |attr, param|
209
+ value = send(attr)
210
+ if value.nil?
211
+ is_nullable = self.class.openapi_nullable.include?(attr)
212
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
213
+ end
214
+
215
+ hash[param] = _to_hash(value)
216
+ end
217
+ hash
218
+ end
219
+
220
+ # Outputs non-array value in the form of hash
221
+ # For object, use to_hash. Otherwise, just return the value
222
+ # @param [Object] value Any valid value
223
+ # @return [Hash] Returns the value in the form of hash
224
+ def _to_hash(value)
225
+ if value.is_a?(Array)
226
+ value.compact.map { |v| _to_hash(v) }
227
+ elsif value.is_a?(Hash)
228
+ {}.tap do |hash|
229
+ value.each { |k, v| hash[k] = _to_hash(v) }
230
+ end
231
+ elsif value.respond_to? :to_hash
232
+ value.to_hash
233
+ else
234
+ value
235
+ end
236
+ end
237
+ end
238
+ end