Class: Uplink::UploadInfo
- Inherits:
-
Object
- Object
- Uplink::UploadInfo
- Defined in:
- lib/uplink/upload.rb
Instance Attribute Summary collapse
-
#content_length ⇒ Object
readonly
Returns the value of attribute content_length.
-
#created ⇒ Object
readonly
Returns the value of attribute created.
-
#custom ⇒ Object
readonly
Returns the value of attribute custom.
-
#expires ⇒ Object
readonly
Returns the value of attribute expires.
-
#is_prefix ⇒ Object
readonly
Returns the value of attribute is_prefix.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#upload_id ⇒ Object
readonly
Returns the value of attribute upload_id.
Instance Method Summary collapse
-
#initialize(upload_info_result, upload_info = nil) ⇒ UploadInfo
constructor
A new instance of UploadInfo.
Constructor Details
#initialize(upload_info_result, upload_info = nil) ⇒ UploadInfo
Returns a new instance of UploadInfo.
64 65 66 |
# File 'lib/uplink/upload.rb', line 64 def initialize(upload_info_result, upload_info = nil) init_attributes(upload_info_result.nil? || upload_info_result.null? ? upload_info : upload_info_result[:info]) end |
Instance Attribute Details
#content_length ⇒ Object (readonly)
Returns the value of attribute content_length.
62 63 64 |
# File 'lib/uplink/upload.rb', line 62 def content_length @content_length end |
#created ⇒ Object (readonly)
Returns the value of attribute created.
62 63 64 |
# File 'lib/uplink/upload.rb', line 62 def created @created end |
#custom ⇒ Object (readonly)
Returns the value of attribute custom.
62 63 64 |
# File 'lib/uplink/upload.rb', line 62 def custom @custom end |
#expires ⇒ Object (readonly)
Returns the value of attribute expires.
62 63 64 |
# File 'lib/uplink/upload.rb', line 62 def expires @expires end |
#is_prefix ⇒ Object (readonly)
Returns the value of attribute is_prefix.
62 63 64 |
# File 'lib/uplink/upload.rb', line 62 def is_prefix @is_prefix end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
62 63 64 |
# File 'lib/uplink/upload.rb', line 62 def key @key end |
#upload_id ⇒ Object (readonly)
Returns the value of attribute upload_id.
62 63 64 |
# File 'lib/uplink/upload.rb', line 62 def upload_id @upload_id end |