Class: Files::FilePartUpload
- Inherits:
-
Object
- Object
- Files::FilePartUpload
- Defined in:
- lib/files.com/models/file_part_upload.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#action ⇒ Object
string - Type of upload.
-
#ask_about_overwrites ⇒ Object
boolean - If false, rename conflicting files instead of asking for overwrite confirmation.
-
#available_parts ⇒ Object
string - Currently unused.
-
#expires ⇒ Object
string - Currently unused.
-
#headers ⇒ Object
object - Additional upload headers.
-
#http_method ⇒ Object
string - Upload method, usually POST.
-
#initialize(attributes = {}, options = {}) ⇒ FilePartUpload
constructor
A new instance of FilePartUpload.
-
#next_partsize ⇒ Object
string - Currently unused.
-
#parallel_parts ⇒ Object
boolean - If true, parts may be uploaded in parallel.
-
#parameters ⇒ Object
string - Additional upload parameters.
-
#part_number ⇒ Object
string - Currently unused.
-
#partsize ⇒ Object
string - Currently unused.
-
#path ⇒ Object
string - Upload path This must be slash-delimited, but it must neither start nor end with a slash.
-
#ref ⇒ Object
string - Reference name for this upload part.
-
#send ⇒ Object
object - Content-Type and File to send.
-
#upload_uri ⇒ Object
string - URI to upload this part to.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ FilePartUpload
Returns a new instance of FilePartUpload.
7 8 9 10 |
# File 'lib/files.com/models/file_part_upload.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/file_part_upload.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/file_part_upload.rb', line 5 def @options end |
Instance Method Details
#action ⇒ Object
string - Type of upload
18 19 20 |
# File 'lib/files.com/models/file_part_upload.rb', line 18 def action @attributes[:action] end |
#ask_about_overwrites ⇒ Object
boolean - If false, rename conflicting files instead of asking for overwrite confirmation
23 24 25 |
# File 'lib/files.com/models/file_part_upload.rb', line 23 def ask_about_overwrites @attributes[:ask_about_overwrites] end |
#available_parts ⇒ Object
string - Currently unused
28 29 30 |
# File 'lib/files.com/models/file_part_upload.rb', line 28 def available_parts @attributes[:available_parts] end |
#expires ⇒ Object
string - Currently unused
33 34 35 |
# File 'lib/files.com/models/file_part_upload.rb', line 33 def expires @attributes[:expires] end |
#headers ⇒ Object
object - Additional upload headers
38 39 40 |
# File 'lib/files.com/models/file_part_upload.rb', line 38 def headers @attributes[:headers] end |
#http_method ⇒ Object
string - Upload method, usually POST
43 44 45 |
# File 'lib/files.com/models/file_part_upload.rb', line 43 def http_method @attributes[:http_method] end |
#next_partsize ⇒ Object
string - Currently unused
48 49 50 |
# File 'lib/files.com/models/file_part_upload.rb', line 48 def next_partsize @attributes[:next_partsize] end |
#parallel_parts ⇒ Object
boolean - If true, parts may be uploaded in parallel
53 54 55 |
# File 'lib/files.com/models/file_part_upload.rb', line 53 def parallel_parts @attributes[:parallel_parts] end |
#parameters ⇒ Object
string - Additional upload parameters
58 59 60 |
# File 'lib/files.com/models/file_part_upload.rb', line 58 def parameters @attributes[:parameters] end |
#part_number ⇒ Object
string - Currently unused
63 64 65 |
# File 'lib/files.com/models/file_part_upload.rb', line 63 def part_number @attributes[:part_number] end |
#partsize ⇒ Object
string - Currently unused
68 69 70 |
# File 'lib/files.com/models/file_part_upload.rb', line 68 def partsize @attributes[:partsize] end |
#path ⇒ Object
string - Upload path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
73 74 75 |
# File 'lib/files.com/models/file_part_upload.rb', line 73 def path @attributes[:path] end |
#ref ⇒ Object
string - Reference name for this upload part
78 79 80 |
# File 'lib/files.com/models/file_part_upload.rb', line 78 def ref @attributes[:ref] end |
#send ⇒ Object
object - Content-Type and File to send
13 14 15 |
# File 'lib/files.com/models/file_part_upload.rb', line 13 def send @attributes[:send] end |
#upload_uri ⇒ Object
string - URI to upload this part to
83 84 85 |
# File 'lib/files.com/models/file_part_upload.rb', line 83 def upload_uri @attributes[:upload_uri] end |