Class: DropboxApi::Metadata::MemberActionCollection
- Inherits:
-
Array
- Object
- Array
- DropboxApi::Metadata::MemberActionCollection
- Defined in:
- lib/dropbox_api/metadata/member_action_collection.rb
Overview
This represents a collection of actions that may be taken on members of a shared folder. Each 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.
TODO: Split this object in two: MemberAction & MemberActionList,
DropboxApi::Metadata::MemberPermission will use it.
Constant Summary collapse
- ValidActions =
[ :leave_a_copy, :make_editor, :make_owner, :make_viewer, :make_viewer_no_comment, :remove ]
Instance Method Summary collapse
-
#initialize(actions) ⇒ MemberActionCollection
constructor
A new instance of MemberActionCollection.
Constructor Details
#initialize(actions) ⇒ MemberActionCollection
Returns a new instance of MemberActionCollection.
24 25 26 27 28 29 |
# File 'lib/dropbox_api/metadata/member_action_collection.rb', line 24 def initialize(actions) actions = symbolize actions validate actions super(actions) end |