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.



10
11
12
# File 'lib/dropbox_api/results/get_copy_reference_result.rb', line 10

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.



17
18
19
# File 'lib/dropbox_api/results/get_copy_reference_result.rb', line 17

def expires
  @expires ||= Time.parse(@data['expires'])
end

#resourceObject

Metadata of the file or folder.



5
6
7
# File 'lib/dropbox_api/results/get_copy_reference_result.rb', line 5

def resource
  @resource ||= DropboxApi::Metadata::Resource.new @data['metadata']
end