mailslurp_client 15.17.40 → 15.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -22
  3. data/lib/mailslurp_client/api/email_controller_api.rb +62 -0
  4. data/lib/mailslurp_client/api/tools_controller_api.rb +175 -0
  5. data/lib/mailslurp_client/models/alias_projection.rb +39 -39
  6. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  7. data/lib/mailslurp_client/models/bounce_projection.rb +15 -15
  8. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
  9. data/lib/mailslurp_client/models/check_email_body_results.rb +259 -0
  10. data/lib/mailslurp_client/models/connector_projection.rb +24 -24
  11. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  12. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  13. data/lib/mailslurp_client/models/email_projection.rb +21 -21
  14. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
  15. data/lib/mailslurp_client/models/fake_email_dto.rb +305 -0
  16. data/lib/mailslurp_client/models/fake_email_preview.rb +291 -0
  17. data/lib/mailslurp_client/models/fake_email_result.rb +206 -0
  18. data/lib/mailslurp_client/models/image_issue.rb +282 -0
  19. data/lib/mailslurp_client/models/imap_smtp_access_details.rb +15 -4
  20. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +20 -20
  21. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
  22. data/lib/mailslurp_client/models/link_issue.rb +282 -0
  23. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  24. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  25. data/lib/mailslurp_client/models/new_fake_email_address_result.rb +211 -0
  26. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  27. data/lib/mailslurp_client/models/sent_email_projection.rb +44 -44
  28. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  29. data/lib/mailslurp_client/models/spelling_issue.rb +287 -0
  30. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  31. data/lib/mailslurp_client/models/thread_projection.rb +41 -41
  32. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
  33. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  34. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  35. data/lib/mailslurp_client/version.rb +1 -1
  36. data/lib/mailslurp_client.rb +8 -0
  37. metadata +10 -2
@@ -0,0 +1,287 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
5
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailSlurpClient
16
+ class SpellingIssue
17
+ attr_accessor :group
18
+
19
+ attr_accessor :suggestion
20
+
21
+ attr_accessor :severity
22
+
23
+ attr_accessor :message
24
+
25
+ class EnumAttributeValidator
26
+ attr_reader :datatype
27
+ attr_reader :allowable_values
28
+
29
+ def initialize(datatype, allowable_values)
30
+ @allowable_values = allowable_values.map do |value|
31
+ case datatype.to_s
32
+ when /Integer/i
33
+ value.to_i
34
+ when /Float/i
35
+ value.to_f
36
+ else
37
+ value
38
+ end
39
+ end
40
+ end
41
+
42
+ def valid?(value)
43
+ !value || allowable_values.include?(value)
44
+ end
45
+ end
46
+
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'group' => :'group',
51
+ :'suggestion' => :'suggestion',
52
+ :'severity' => :'severity',
53
+ :'message' => :'message'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.openapi_types
59
+ {
60
+ :'group' => :'String',
61
+ :'suggestion' => :'String',
62
+ :'severity' => :'String',
63
+ :'message' => :'String'
64
+ }
65
+ end
66
+
67
+ # List of attributes with nullable: true
68
+ def self.openapi_nullable
69
+ Set.new([
70
+ ])
71
+ end
72
+
73
+ # Initializes the object
74
+ # @param [Hash] attributes Model attributes in the form of hash
75
+ def initialize(attributes = {})
76
+ if (!attributes.is_a?(Hash))
77
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::SpellingIssue` initialize method"
78
+ end
79
+
80
+ # check to see if the attribute exists and convert string to symbol for hash key
81
+ attributes = attributes.each_with_object({}) { |(k, v), h|
82
+ if (!self.class.attribute_map.key?(k.to_sym))
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::SpellingIssue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
+ end
85
+ h[k.to_sym] = v
86
+ }
87
+
88
+ if attributes.key?(:'group')
89
+ self.group = attributes[:'group']
90
+ end
91
+
92
+ if attributes.key?(:'suggestion')
93
+ self.suggestion = attributes[:'suggestion']
94
+ end
95
+
96
+ if attributes.key?(:'severity')
97
+ self.severity = attributes[:'severity']
98
+ end
99
+
100
+ if attributes.key?(:'message')
101
+ self.message = attributes[:'message']
102
+ end
103
+ end
104
+
105
+ # Show invalid properties with the reasons. Usually used together with valid?
106
+ # @return Array for valid properties with the reasons
107
+ def list_invalid_properties
108
+ invalid_properties = Array.new
109
+ if @group.nil?
110
+ invalid_properties.push('invalid value for "group", group cannot be nil.')
111
+ end
112
+
113
+ if @suggestion.nil?
114
+ invalid_properties.push('invalid value for "suggestion", suggestion cannot be nil.')
115
+ end
116
+
117
+ if @severity.nil?
118
+ invalid_properties.push('invalid value for "severity", severity cannot be nil.')
119
+ end
120
+
121
+ if @message.nil?
122
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
123
+ end
124
+
125
+ invalid_properties
126
+ end
127
+
128
+ # Check to see if the all the properties in the model are valid
129
+ # @return true if the model is valid
130
+ def valid?
131
+ return false if @group.nil?
132
+ return false if @suggestion.nil?
133
+ return false if @severity.nil?
134
+ severity_validator = EnumAttributeValidator.new('String', ["Warning", "Error"])
135
+ return false unless severity_validator.valid?(@severity)
136
+ return false if @message.nil?
137
+ true
138
+ end
139
+
140
+ # Custom attribute writer method checking allowed values (enum).
141
+ # @param [Object] severity Object to be assigned
142
+ def severity=(severity)
143
+ validator = EnumAttributeValidator.new('String', ["Warning", "Error"])
144
+ unless validator.valid?(severity)
145
+ fail ArgumentError, "invalid value for \"severity\", must be one of #{validator.allowable_values}."
146
+ end
147
+ @severity = severity
148
+ end
149
+
150
+ # Checks equality by comparing each attribute.
151
+ # @param [Object] Object to be compared
152
+ def ==(o)
153
+ return true if self.equal?(o)
154
+ self.class == o.class &&
155
+ group == o.group &&
156
+ suggestion == o.suggestion &&
157
+ severity == o.severity &&
158
+ message == o.message
159
+ end
160
+
161
+ # @see the `==` method
162
+ # @param [Object] Object to be compared
163
+ def eql?(o)
164
+ self == o
165
+ end
166
+
167
+ # Calculates hash code according to all attributes.
168
+ # @return [Integer] Hash code
169
+ def hash
170
+ [group, suggestion, severity, message].hash
171
+ end
172
+
173
+ # Builds the object from hash
174
+ # @param [Hash] attributes Model attributes in the form of hash
175
+ # @return [Object] Returns the model itself
176
+ def self.build_from_hash(attributes)
177
+ new.build_from_hash(attributes)
178
+ end
179
+
180
+ # Builds the object from hash
181
+ # @param [Hash] attributes Model attributes in the form of hash
182
+ # @return [Object] Returns the model itself
183
+ def build_from_hash(attributes)
184
+ return nil unless attributes.is_a?(Hash)
185
+ self.class.openapi_types.each_pair do |key, type|
186
+ if type =~ /\AArray<(.*)>/i
187
+ # check to ensure the input is an array given that the attribute
188
+ # is documented as an array but the input is not
189
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
190
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
191
+ end
192
+ elsif !attributes[self.class.attribute_map[key]].nil?
193
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
194
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
195
+ end
196
+
197
+ self
198
+ end
199
+
200
+ # Deserializes the data based on type
201
+ # @param string type Data type
202
+ # @param string value Value to be deserialized
203
+ # @return [Object] Deserialized data
204
+ def _deserialize(type, value)
205
+ case type.to_sym
206
+ when :DateTime
207
+ DateTime.parse(value)
208
+ when :Date
209
+ Date.parse(value)
210
+ when :String
211
+ value.to_s
212
+ when :Integer
213
+ value.to_i
214
+ when :Float
215
+ value.to_f
216
+ when :Boolean
217
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
218
+ true
219
+ else
220
+ false
221
+ end
222
+ when :Object
223
+ # generic object (usually a Hash), return directly
224
+ value
225
+ when /\AArray<(?<inner_type>.+)>\z/
226
+ inner_type = Regexp.last_match[:inner_type]
227
+ value.map { |v| _deserialize(inner_type, v) }
228
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
229
+ k_type = Regexp.last_match[:k_type]
230
+ v_type = Regexp.last_match[:v_type]
231
+ {}.tap do |hash|
232
+ value.each do |k, v|
233
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
234
+ end
235
+ end
236
+ else # model
237
+ MailSlurpClient.const_get(type).build_from_hash(value)
238
+ end
239
+ end
240
+
241
+ # Returns the string representation of the object
242
+ # @return [String] String presentation of the object
243
+ def to_s
244
+ to_hash.to_s
245
+ end
246
+
247
+ # to_body is an alias to to_hash (backward compatibility)
248
+ # @return [Hash] Returns the object in the form of hash
249
+ def to_body
250
+ to_hash
251
+ end
252
+
253
+ # Returns the object in the form of hash
254
+ # @return [Hash] Returns the object in the form of hash
255
+ def to_hash
256
+ hash = {}
257
+ self.class.attribute_map.each_pair do |attr, param|
258
+ value = self.send(attr)
259
+ if value.nil?
260
+ is_nullable = self.class.openapi_nullable.include?(attr)
261
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
262
+ end
263
+
264
+ hash[param] = _to_hash(value)
265
+ end
266
+ hash
267
+ end
268
+
269
+ # Outputs non-array value in the form of hash
270
+ # For object, use to_hash. Otherwise, just return the value
271
+ # @param [Object] value Any valid value
272
+ # @return [Hash] Returns the value in the form of hash
273
+ def _to_hash(value)
274
+ if value.is_a?(Array)
275
+ value.compact.map { |v| _to_hash(v) }
276
+ elsif value.is_a?(Hash)
277
+ {}.tap do |hash|
278
+ value.each { |k, v| hash[k] = _to_hash(v) }
279
+ end
280
+ elsif value.respond_to? :to_hash
281
+ value.to_hash
282
+ else
283
+ value
284
+ end
285
+ end
286
+ end
287
+ end
@@ -15,12 +15,12 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Email template data
17
17
  class TemplateProjection
18
+ attr_accessor :variables
19
+
18
20
  attr_accessor :created_at
19
21
 
20
22
  attr_accessor :updated_at
21
23
 
22
- attr_accessor :variables
23
-
24
24
  attr_accessor :name
25
25
 
26
26
  attr_accessor :id
@@ -28,9 +28,9 @@ module MailSlurpClient
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
+ :'variables' => :'variables',
31
32
  :'created_at' => :'createdAt',
32
33
  :'updated_at' => :'updatedAt',
33
- :'variables' => :'variables',
34
34
  :'name' => :'name',
35
35
  :'id' => :'id'
36
36
  }
@@ -39,9 +39,9 @@ module MailSlurpClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
+ :'variables' => :'Array<String>',
42
43
  :'created_at' => :'DateTime',
43
44
  :'updated_at' => :'DateTime',
44
- :'variables' => :'Array<String>',
45
45
  :'name' => :'String',
46
46
  :'id' => :'String'
47
47
  }
@@ -68,6 +68,12 @@ module MailSlurpClient
68
68
  h[k.to_sym] = v
69
69
  }
70
70
 
71
+ if attributes.key?(:'variables')
72
+ if (value = attributes[:'variables']).is_a?(Array)
73
+ self.variables = value
74
+ end
75
+ end
76
+
71
77
  if attributes.key?(:'created_at')
72
78
  self.created_at = attributes[:'created_at']
73
79
  end
@@ -76,12 +82,6 @@ module MailSlurpClient
76
82
  self.updated_at = attributes[:'updated_at']
77
83
  end
78
84
 
79
- if attributes.key?(:'variables')
80
- if (value = attributes[:'variables']).is_a?(Array)
81
- self.variables = value
82
- end
83
- end
84
-
85
85
  if attributes.key?(:'name')
86
86
  self.name = attributes[:'name']
87
87
  end
@@ -95,6 +95,10 @@ module MailSlurpClient
95
95
  # @return Array for valid properties with the reasons
96
96
  def list_invalid_properties
97
97
  invalid_properties = Array.new
98
+ if @variables.nil?
99
+ invalid_properties.push('invalid value for "variables", variables cannot be nil.')
100
+ end
101
+
98
102
  if @created_at.nil?
99
103
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
100
104
  end
@@ -103,10 +107,6 @@ module MailSlurpClient
103
107
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
104
108
  end
105
109
 
106
- if @variables.nil?
107
- invalid_properties.push('invalid value for "variables", variables cannot be nil.')
108
- end
109
-
110
110
  if @name.nil?
111
111
  invalid_properties.push('invalid value for "name", name cannot be nil.')
112
112
  end
@@ -121,9 +121,9 @@ module MailSlurpClient
121
121
  # Check to see if the all the properties in the model are valid
122
122
  # @return true if the model is valid
123
123
  def valid?
124
+ return false if @variables.nil?
124
125
  return false if @created_at.nil?
125
126
  return false if @updated_at.nil?
126
- return false if @variables.nil?
127
127
  return false if @name.nil?
128
128
  return false if @id.nil?
129
129
  true
@@ -134,9 +134,9 @@ module MailSlurpClient
134
134
  def ==(o)
135
135
  return true if self.equal?(o)
136
136
  self.class == o.class &&
137
+ variables == o.variables &&
137
138
  created_at == o.created_at &&
138
139
  updated_at == o.updated_at &&
139
- variables == o.variables &&
140
140
  name == o.name &&
141
141
  id == o.id
142
142
  end
@@ -150,7 +150,7 @@ module MailSlurpClient
150
150
  # Calculates hash code according to all attributes.
151
151
  # @return [Integer] Hash code
152
152
  def hash
153
- [created_at, updated_at, variables, name, id].hash
153
+ [variables, created_at, updated_at, name, id].hash
154
154
  end
155
155
 
156
156
  # Builds the object from hash
@@ -15,18 +15,12 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # A thread is a message thread created for a message received by an alias
17
17
  class ThreadProjection
18
- # Created at DateTime
19
- attr_accessor :created_at
20
-
21
- # Updated at DateTime
22
- attr_accessor :updated_at
18
+ # Inbox ID
19
+ attr_accessor :inbox_id
23
20
 
24
21
  # User ID
25
22
  attr_accessor :user_id
26
23
 
27
- # Inbox ID
28
- attr_accessor :inbox_id
29
-
30
24
  # To recipients
31
25
  attr_accessor :to
32
26
 
@@ -39,6 +33,12 @@ module MailSlurpClient
39
33
  # Alias ID
40
34
  attr_accessor :alias_id
41
35
 
36
+ # Created at DateTime
37
+ attr_accessor :created_at
38
+
39
+ # Updated at DateTime
40
+ attr_accessor :updated_at
41
+
42
42
  # Thread subject
43
43
  attr_accessor :subject
44
44
 
@@ -51,14 +51,14 @@ module MailSlurpClient
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
- :'created_at' => :'createdAt',
55
- :'updated_at' => :'updatedAt',
56
- :'user_id' => :'userId',
57
54
  :'inbox_id' => :'inboxId',
55
+ :'user_id' => :'userId',
58
56
  :'to' => :'to',
59
57
  :'bcc' => :'bcc',
60
58
  :'cc' => :'cc',
61
59
  :'alias_id' => :'aliasId',
60
+ :'created_at' => :'createdAt',
61
+ :'updated_at' => :'updatedAt',
62
62
  :'subject' => :'subject',
63
63
  :'name' => :'name',
64
64
  :'id' => :'id'
@@ -68,14 +68,14 @@ module MailSlurpClient
68
68
  # Attribute type mapping.
69
69
  def self.openapi_types
70
70
  {
71
- :'created_at' => :'DateTime',
72
- :'updated_at' => :'DateTime',
73
- :'user_id' => :'String',
74
71
  :'inbox_id' => :'String',
72
+ :'user_id' => :'String',
75
73
  :'to' => :'Array<String>',
76
74
  :'bcc' => :'Array<String>',
77
75
  :'cc' => :'Array<String>',
78
76
  :'alias_id' => :'String',
77
+ :'created_at' => :'DateTime',
78
+ :'updated_at' => :'DateTime',
79
79
  :'subject' => :'String',
80
80
  :'name' => :'String',
81
81
  :'id' => :'String'
@@ -103,22 +103,14 @@ module MailSlurpClient
103
103
  h[k.to_sym] = v
104
104
  }
105
105
 
106
- if attributes.key?(:'created_at')
107
- self.created_at = attributes[:'created_at']
108
- end
109
-
110
- if attributes.key?(:'updated_at')
111
- self.updated_at = attributes[:'updated_at']
106
+ if attributes.key?(:'inbox_id')
107
+ self.inbox_id = attributes[:'inbox_id']
112
108
  end
113
109
 
114
110
  if attributes.key?(:'user_id')
115
111
  self.user_id = attributes[:'user_id']
116
112
  end
117
113
 
118
- if attributes.key?(:'inbox_id')
119
- self.inbox_id = attributes[:'inbox_id']
120
- end
121
-
122
114
  if attributes.key?(:'to')
123
115
  if (value = attributes[:'to']).is_a?(Array)
124
116
  self.to = value
@@ -141,6 +133,14 @@ module MailSlurpClient
141
133
  self.alias_id = attributes[:'alias_id']
142
134
  end
143
135
 
136
+ if attributes.key?(:'created_at')
137
+ self.created_at = attributes[:'created_at']
138
+ end
139
+
140
+ if attributes.key?(:'updated_at')
141
+ self.updated_at = attributes[:'updated_at']
142
+ end
143
+
144
144
  if attributes.key?(:'subject')
145
145
  self.subject = attributes[:'subject']
146
146
  end
@@ -158,22 +158,14 @@ module MailSlurpClient
158
158
  # @return Array for valid properties with the reasons
159
159
  def list_invalid_properties
160
160
  invalid_properties = Array.new
161
- if @created_at.nil?
162
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
163
- end
164
-
165
- if @updated_at.nil?
166
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
161
+ if @inbox_id.nil?
162
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
167
163
  end
168
164
 
169
165
  if @user_id.nil?
170
166
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
171
167
  end
172
168
 
173
- if @inbox_id.nil?
174
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
175
- end
176
-
177
169
  if @to.nil?
178
170
  invalid_properties.push('invalid value for "to", to cannot be nil.')
179
171
  end
@@ -182,6 +174,14 @@ module MailSlurpClient
182
174
  invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
183
175
  end
184
176
 
177
+ if @created_at.nil?
178
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
179
+ end
180
+
181
+ if @updated_at.nil?
182
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
183
+ end
184
+
185
185
  if @id.nil?
186
186
  invalid_properties.push('invalid value for "id", id cannot be nil.')
187
187
  end
@@ -192,12 +192,12 @@ module MailSlurpClient
192
192
  # Check to see if the all the properties in the model are valid
193
193
  # @return true if the model is valid
194
194
  def valid?
195
- return false if @created_at.nil?
196
- return false if @updated_at.nil?
197
- return false if @user_id.nil?
198
195
  return false if @inbox_id.nil?
196
+ return false if @user_id.nil?
199
197
  return false if @to.nil?
200
198
  return false if @alias_id.nil?
199
+ return false if @created_at.nil?
200
+ return false if @updated_at.nil?
201
201
  return false if @id.nil?
202
202
  true
203
203
  end
@@ -207,14 +207,14 @@ module MailSlurpClient
207
207
  def ==(o)
208
208
  return true if self.equal?(o)
209
209
  self.class == o.class &&
210
- created_at == o.created_at &&
211
- updated_at == o.updated_at &&
212
- user_id == o.user_id &&
213
210
  inbox_id == o.inbox_id &&
211
+ user_id == o.user_id &&
214
212
  to == o.to &&
215
213
  bcc == o.bcc &&
216
214
  cc == o.cc &&
217
215
  alias_id == o.alias_id &&
216
+ created_at == o.created_at &&
217
+ updated_at == o.updated_at &&
218
218
  subject == o.subject &&
219
219
  name == o.name &&
220
220
  id == o.id
@@ -229,7 +229,7 @@ module MailSlurpClient
229
229
  # Calculates hash code according to all attributes.
230
230
  # @return [Integer] Hash code
231
231
  def hash
232
- [created_at, updated_at, user_id, inbox_id, to, bcc, cc, alias_id, subject, name, id].hash
232
+ [inbox_id, user_id, to, bcc, cc, alias_id, created_at, updated_at, subject, name, id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash