lib/docspring/models/combined_submission.rb in docspring-1.0.0 vs lib/docspring/models/combined_submission.rb in docspring-1.1.0

- old
+ new

@@ -20,10 +20,12 @@ attr_accessor :expires_at attr_accessor :source_pdfs + attr_accessor :pdf_hash + attr_accessor :download_url attr_accessor :submission_ids attr_accessor :id @@ -59,10 +61,11 @@ { :'metadata' => :'metadata', :'expired' => :'expired', :'expires_at' => :'expires_at', :'source_pdfs' => :'source_pdfs', + :'pdf_hash' => :'pdf_hash', :'download_url' => :'download_url', :'submission_ids' => :'submission_ids', :'id' => :'id', :'state' => :'state', :'actions' => :'actions' @@ -74,10 +77,11 @@ { :'metadata' => :'Object', :'expired' => :'BOOLEAN', :'expires_at' => :'String', :'source_pdfs' => :'Array<Object>', + :'pdf_hash' => :'String', :'download_url' => :'String', :'submission_ids' => :'Array<String>', :'id' => :'String', :'state' => :'String', :'actions' => :'Array<CombinedSubmissionAction>' @@ -108,10 +112,14 @@ if (value = attributes[:'source_pdfs']).is_a?(Array) self.source_pdfs = value end end + if attributes.has_key?(:'pdf_hash') + self.pdf_hash = attributes[:'pdf_hash'] + end + if attributes.has_key?(:'download_url') self.download_url = attributes[:'download_url'] end if attributes.has_key?(:'submission_ids') @@ -167,10 +175,11 @@ self.class == o.class && metadata == o.metadata && expired == o.expired && expires_at == o.expires_at && source_pdfs == o.source_pdfs && + pdf_hash == o.pdf_hash && download_url == o.download_url && submission_ids == o.submission_ids && id == o.id && state == o.state && actions == o.actions @@ -183,10 +192,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [metadata, expired, expires_at, source_pdfs, download_url, submission_ids, id, state, actions].hash + [metadata, expired, expires_at, source_pdfs, pdf_hash, download_url, submission_ids, id, state, actions].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself