Sha256: 8346b2cbdf2b89b9f9dbf8a291d2c245c21c23dfb1616270712526ae73ac3225

Contents?: true

Size: 915 Bytes

Versions: 8

Compression:

Stored size: 915 Bytes

Contents

module DropboxApi::Metadata
  # 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:
  #
  # ```json
  # {
  #   ".tag": "leave_a_copy"
  # }
  # ```
  class MemberAction < DropboxApi::Metadata::Tag
    VALID_MEMBER_ACTIONS = [
      :leave_a_copy,
      :make_editor,
      :make_owner,
      :make_viewer,
      :make_viewer_no_comment,
      :remove
    ]

    def self.valid_values
      VALID_MEMBER_ACTIONS
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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