lib/braintree/document_upload.rb in braintree-2.80.1 vs lib/braintree/document_upload.rb in braintree-2.81.0

- old
+ new

@@ -1,28 +1,27 @@ module Braintree class DocumentUpload include BaseModule + include Braintree::Util::IdEquality module Kind IdentityDocument = "identity_document" EvidenceDocument = "evidence_document" PayoutInvoiceDocument = "payout_invoice_document" end - attr_reader :id, :kind, :content_type, :name, :size + attr_reader :content_type + attr_reader :id + attr_reader :kind + attr_reader :name + attr_reader :size def self.create(attributes) Configuration.gateway.document_upload.create(attributes) end def initialize(attributes) # :nodoc: set_instance_variables_from_hash(attributes) - end - - # True if <tt>other</tt> has the same id. - def ==(other) - return false unless other.is_a?(DocumentUpload) - id == other.id end class << self protected :new def _new(*args) # :nodoc: