Class: Aliyun::Oss::Struct::File
- Defined in:
- lib/aliyun/oss/struct/file.rb
Instance Attribute Summary
Attributes inherited from Object
#bucket, #client, #etag, #key, #last_modified, #location, #owner, #size, #storage_class, #type
Instance Method Summary collapse
- #file? ⇒ Boolean
-
#share_link(expired_in_seconds) ⇒ URL
Get object share link.
Methods inherited from Object
#acl!, init_from_object, init_from_response, #meta!, #set_acl
Methods inherited from Base
Constructor Details
This class inherits a constructor from Aliyun::Oss::Struct::Base
Instance Method Details
#file? ⇒ Boolean
5 6 7 |
# File 'lib/aliyun/oss/struct/file.rb', line 5 def file? true end |
#share_link(expired_in_seconds) ⇒ URL
Get object share link
14 15 16 |
# File 'lib/aliyun/oss/struct/file.rb', line 14 def share_link(expired_in_seconds) client.bucket_get_object_share_link(key, expired_in_seconds) end |