Class: DropboxApi::Metadata::File

Inherits:
Base
  • Object
show all
Defined in:
lib/dropbox_api/metadata/file.rb

Overview

Example of a serialized File object:

{
  ".tag": "file",
  "name": "Prime_Numbers.txt",
  "path_lower": "/homework/math/prime_numbers.txt",
  "path_display": "/Homework/math/Prime_Numbers.txt",
  "id": "id:a4ayc_80_OEAAAAAAAAAXw",
  "client_modified": "2015-05-12T15:50:38Z",
  "server_modified": "2015-05-12T15:50:38Z",
  "rev": "a1c10ce0dd78",
  "size": 7212,
  "sharing_info": {
    "read_only": true,
    "parent_shared_folder_id": "84528192421",
    "modified_by": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc"
  }
}

Instance Method Summary collapse

Methods inherited from Base

field, #initialize, #serialized_field

Constructor Details

This class inherits a constructor from DropboxApi::Metadata::Base

Instance Method Details

#to_hashObject


35
36
37
# File 'lib/dropbox_api/metadata/file.rb', line 35

def to_hash
  super.merge(".tag" => "file")
end