Class: DropboxApi::Metadata::FileMemberAction

Inherits:
Base
  • Object
show all
Defined in:
lib/dropbox_api/metadata/file_member_action.rb

Overview

Example of a serialized FileMemberAction:

{
  ".tag": "success",
  "success": {
    ".tag": "viewer"
  }
}

Class Method Summary collapse

Methods inherited from Base

field, #initialize, #serialized_field, #to_hash

Constructor Details

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

Class Method Details

.new(data) ⇒ Object


14
15
16
17
# File 'lib/dropbox_api/metadata/file_member_action.rb', line 14

def new(data)
  tag = data[".tag"]
  class_for(tag.to_sym).new(data[tag])
end