Class: Dropbox::Metadata

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

Overview

Abstract class inherited by the other metadata classes.

Direct Known Subclasses

DeletedMetadata, FileMetadata, FolderMetadata

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Metadata

Returns a new instance of Metadata.


8
9
10
11
12
# File 'lib/dropbox/metadata.rb', line 8

def initialize(attrs={})
  @name = attrs['name']
  @path_lower = attrs['path_lower']
  @path_display = attrs['path_display']
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


6
7
8
# File 'lib/dropbox/metadata.rb', line 6

def name
  @name
end

#path_displayObject (readonly)

Returns the value of attribute path_display


6
7
8
# File 'lib/dropbox/metadata.rb', line 6

def path_display
  @path_display
end

#path_lowerObject (readonly)

Returns the value of attribute path_lower


6
7
8
# File 'lib/dropbox/metadata.rb', line 6

def path_lower
  @path_lower
end