Class: Dropbox::FolderMetadata

Inherits:
Metadata
  • Object
show all
Defined in:
lib/dropbox/metadata.rb

Overview

Contains the metadata (but not contents) of a folder.

Instance Attribute Summary collapse

Attributes inherited from Metadata

#name, #path_display, #path_lower

Instance Method Summary collapse

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

#idObject (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