Class: DropboxApi::Results::AddFileMemberResultList

Inherits:
Array
  • Object
show all
Defined in:
lib/dropbox_api/results/add_file_member_result_list.rb

Overview

Example of a result of the add_file_member endpoint: [{ "member":{ ".tag": "email", "email": "[email protected]" }, "result": { ".tag": "success", "success": { ".tag": "viewer" } } }]

Instance Method Summary collapse

Constructor Details

#initialize(members) ⇒ AddFileMemberResultList

Returns a new instance of AddFileMemberResultList.


16
17
18
# File 'lib/dropbox_api/results/add_file_member_result_list.rb', line 16

def initialize(members)
  super(members.map { |m| DropboxApi::Metadata::AddFileMemberResult.new m })
end