Class: DropboxApi::Metadata::MemberAction

Inherits:
Tag
  • Object
show all
Defined in:
lib/dropbox_api/metadata/member_action.rb

Overview

An action will be one of the following:

  • :leave_a_copy: Allow the member to keep a copy of the folder when removing.
  • :make_editor: Make the member an editor of the folder.
  • :make_owner: Make the member an owner of the folder.
  • :make_viewer: Make the member a viewer of the folder.
  • :make_viewer_no_comment: Make the member a viewer of the folder without commenting permissions.
  • :remove: Remove the member from the folder.

Example of a serialized MemberAction object:

{
  ".tag": "leave_a_copy"
}

Constant Summary collapse

VALID_MEMBER_ACTIONS =
[
  :leave_a_copy,
  :make_editor,
  :make_owner,
  :make_viewer,
  :make_viewer_no_comment,
  :remove
]

Class Method Summary collapse

Methods inherited from Tag

new, validate

Methods inherited from Base

field, #initialize, #serialized_field, #to_hash

Constructor Details

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

Class Method Details

.valid_valuesObject



30
31
32
# File 'lib/dropbox_api/metadata/member_action.rb', line 30

def self.valid_values
  VALID_MEMBER_ACTIONS
end