Exception: Dropbox::NotLoadedError
- Defined in:
- lib/dropbox/revision.rb
Overview
Raised when trying to access content metadata before it has been loaded.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
What data did you attempt to access before it was loaded? Either
:content
or:metadata
.
Instance Method Summary collapse
-
#initialize(data) ⇒ NotLoadedError
constructor
:nodoc:.
-
#to_s ⇒ Object
:nodoc:.
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
#data ⇒ Object (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_s ⇒ Object
: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 |