Class: DropboxApi::Metadata::MemberPermissionList
- Inherits:
-
Array
- Object
- Array
- DropboxApi::Metadata::MemberPermissionList
- Defined in:
- lib/dropbox_api/metadata/member_permission_list.rb
Overview
This represents a collection of permissions on allowed on a shared file or folder.
This is an example of a serialized MemberActionList:
[{
"action": {
".tag": "remove"
},
"allow": false,
"reason": {
".tag": "target_is_self"
}
}, {
"action": {
".tag": "make_owner"
},
"allow": false,
"reason": {
".tag": "target_is_self"
}
}]
Instance Method Summary collapse
-
#initialize(list) ⇒ MemberPermissionList
constructor
A new instance of MemberPermissionList.
Constructor Details
#initialize(list) ⇒ MemberPermissionList
Returns a new instance of MemberPermissionList.
27 28 29 |
# File 'lib/dropbox_api/metadata/member_permission_list.rb', line 27 def initialize(list) super(list.map { |i| DropboxApi::Metadata::MemberPermission.new i }) end |