Exception: Dropbox::NotLoadedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dropbox/revision.rb

Overview

Raised when trying to access content metadata before it has been loaded.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ NotLoadedError

:nodoc:


189
190
191
# File 'lib/dropbox/revision.rb', line 189

def initialize(data) # :nodoc:
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

What data did you attempt to access before it was loaded? Either :content or :metadata.


187
188
189
# File 'lib/dropbox/revision.rb', line 187

def data
  @data
end

Instance Method Details

#to_sObject

:nodoc:


193
194
195
# File 'lib/dropbox/revision.rb', line 193

def to_s # :nodoc:
  "#{data.capitalize} not yet loaded -- call #load on the Dropbox::Revision instance beforehand"
end