Sha256: 66e3b9f2d1a33605a41d5ee06f666cdfa8cebe023de0d5f3572f0629078b615c

Contents?: true

Size: 534 Bytes

Versions: 8

Compression:

Stored size: 534 Bytes

Contents

module DropboxApi::Metadata
  # Example of a serialized {Folder} object:
  #
  # ```json
  # {
  #   "name": "arizona_baby",
  #   "path_lower": "/arizona_baby",
  #   "path_display": "/arizona_baby",
  #   "id": "id:7eWkV5hcfzAAAAAAAAAAAQ"
  # }
  # ```
  class Folder < Base
    field :name, String
    field :path_lower, String
    field :path_display, String
    field :id, String
    field :sharing_info, DropboxApi::Metadata::FolderSharingInfo, :optional

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dropbox_api-0.1.18 lib/dropbox_api/metadata/folder.rb
dropbox_api-0.1.17 lib/dropbox_api/metadata/folder.rb
dropbox_api-0.1.16 lib/dropbox_api/metadata/folder.rb
dropbox_api-0.1.15 lib/dropbox_api/metadata/folder.rb
dropbox_api-0.1.14 lib/dropbox_api/metadata/folder.rb
dropbox_api-0.1.13 lib/dropbox_api/metadata/folder.rb
dropbox_api-0.1.12 lib/dropbox_api/metadata/folder.rb
dropbox_api-0.1.11 lib/dropbox_api/metadata/folder.rb