Class: Braintree::DocumentUpload

Inherits:
Object
  • Object
show all
Includes:
BaseModule, Util::IdEquality
Defined in:
lib/braintree/document_upload.rb

Defined Under Namespace

Modules: Kind

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Util::IdEquality

#==

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(attributes) ⇒ DocumentUpload

Returns a new instance of DocumentUpload.



26
27
28
# File 'lib/braintree/document_upload.rb', line 26

def initialize(attributes)
  set_instance_variables_from_hash(attributes)
end

Instance Attribute Details

#content_typeObject (readonly)

Returns the value of attribute content_type.



12
13
14
# File 'lib/braintree/document_upload.rb', line 12

def content_type
  @content_type
end

#idObject (readonly)

Returns the value of attribute id.



13
14
15
# File 'lib/braintree/document_upload.rb', line 13

def id
  @id
end

#kindObject (readonly)

Returns the value of attribute kind.



14
15
16
# File 'lib/braintree/document_upload.rb', line 14

def kind
  @kind
end

#nameObject (readonly)

Returns the value of attribute name.



15
16
17
# File 'lib/braintree/document_upload.rb', line 15

def name
  @name
end

#sizeObject (readonly)

Returns the value of attribute size.



16
17
18
# File 'lib/braintree/document_upload.rb', line 16

def size
  @size
end

Class Method Details

._new(*args) ⇒ Object



32
33
34
# File 'lib/braintree/document_upload.rb', line 32

def _new(*args)
  self.new(*args)
end

.create(*args) ⇒ Object



18
19
20
# File 'lib/braintree/document_upload.rb', line 18

def self.create(*args)
  Configuration.gateway.document_upload.create(*args)
end

.create!(*args) ⇒ Object



22
23
24
# File 'lib/braintree/document_upload.rb', line 22

def self.create!(*args)
  Configuration.gateway.document_upload.create!(*args)
end