Class: Dropbox::FolderMetadata
- Defined in:
- lib/dropbox/metadata.rb
Overview
Contains the metadata (but not contents) of a folder.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from Metadata
#name, #path_display, #path_lower
Instance Method Summary collapse
- #==(cmp) ⇒ Object
-
#initialize(attrs = {}) ⇒ FolderMetadata
constructor
A new instance of FolderMetadata.
Constructor Details
#initialize(attrs = {}) ⇒ FolderMetadata
Returns a new instance of FolderMetadata.
39 40 41 42 |
# File 'lib/dropbox/metadata.rb', line 39 def initialize(attrs={}) @id = attrs.delete('id') super(attrs) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
37 38 39 |
# File 'lib/dropbox/metadata.rb', line 37 def id @id end |
Instance Method Details
#==(cmp) ⇒ Object
44 45 46 |
# File 'lib/dropbox/metadata.rb', line 44 def ==(cmp) cmp.is_a?(self.class) && self.id == cmp.id end |