Class: DropboxApi::Results::GetCopyReferenceResult

Inherits:
Base
  • Object
show all
Defined in:
lib/dropbox_api/results/get_copy_reference_result.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from DropboxApi::Results::Base

Instance Method Details

#copy_referenceObject

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

#expiresObject

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

#resourceObject

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