Class: DropboxApi::Results::GetCopyReferenceResult
- Defined in:
- lib/dropbox_api/results/get_copy_reference_result.rb
Instance Method Summary collapse
-
#copy_reference ⇒ Object
A copy reference to the file or folder.
-
#expires ⇒ Object
The expiration date of the copy reference.
-
#resource ⇒ Object
Metadata of the file or folder.
Methods inherited from Base
Constructor Details
This class inherits a constructor from DropboxApi::Results::Base
Instance Method Details
#copy_reference ⇒ Object
A copy reference to the file or folder.
9 10 11 |
# File 'lib/dropbox_api/results/get_copy_reference_result.rb', line 9 def copy_reference @copy_reference ||= @data["copy_reference"] end |
#expires ⇒ Object
The expiration date of the copy reference. This value is currently set to be far enough in the future so that expiration is effectively not an issue.
16 17 18 |
# File 'lib/dropbox_api/results/get_copy_reference_result.rb', line 16 def expires @expires ||= Time.parse(@data["expires"]) end |
#resource ⇒ Object
Metadata of the file or folder.
4 5 6 |
# File 'lib/dropbox_api/results/get_copy_reference_result.rb', line 4 def resource @resource ||= DropboxApi::Metadata::Resource.new @data["metadata"] end |