Class: Braintree::DocumentUpload
- Inherits:
-
Object
- Object
- Braintree::DocumentUpload
- Includes:
- BaseModule, Util::IdEquality
- Defined in:
- lib/braintree/document_upload.rb
Defined Under Namespace
Modules: Kind
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ DocumentUpload
constructor
A new instance of DocumentUpload.
Methods included from Util::IdEquality
Methods included from BaseModule
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_type ⇒ Object (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 |
#id ⇒ Object (readonly)
Returns the value of attribute id.
13 14 15 |
# File 'lib/braintree/document_upload.rb', line 13 def id @id end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
14 15 16 |
# File 'lib/braintree/document_upload.rb', line 14 def kind @kind end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
15 16 17 |
# File 'lib/braintree/document_upload.rb', line 15 def name @name end |
#size ⇒ Object (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 |