lib/docspring/models/combined_submission_data.rb in docspring-1.4.0 vs lib/docspring/models/combined_submission_data.rb in docspring-1.4.1

- old
+ new

@@ -16,29 +16,33 @@ class CombinedSubmissionData attr_accessor :expires_in attr_accessor :metadata + attr_accessor :password + attr_accessor :submission_ids attr_accessor :test # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'expires_in' => :'expires_in', :'metadata' => :'metadata', + :'password' => :'password', :'submission_ids' => :'submission_ids', :'test' => :'test' } end # Attribute type mapping. def self.openapi_types { :'expires_in' => :'Integer', :'metadata' => :'Object', + :'password' => :'String', :'submission_ids' => :'Array<String>', :'test' => :'BOOLEAN' } end @@ -56,10 +60,14 @@ if attributes.has_key?(:'metadata') self.metadata = attributes[:'metadata'] end + if attributes.has_key?(:'password') + self.password = attributes[:'password'] + end + if attributes.has_key?(:'submission_ids') if (value = attributes[:'submission_ids']).is_a?(Array) self.submission_ids = value end end @@ -92,10 +100,11 @@ def ==(o) return true if self.equal?(o) self.class == o.class && expires_in == o.expires_in && metadata == o.metadata && + password == o.password && submission_ids == o.submission_ids && test == o.test end # @see the `==` method @@ -105,10 +114,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [expires_in, metadata, submission_ids, test].hash + [expires_in, metadata, password, submission_ids, test].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself