Sha256: 157533cc16fb2866cceb3774351fd8dfde6629eeda9efad66bca408e35ec3aab

Contents?: true

Size: 1.02 KB

Versions: 8

Compression:

Stored size: 1.02 KB

Contents

module DropboxApi::Metadata
  # Example of a serialized {BasicAccount} object:
  #
  # ```json
  # {
  #   "account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc",
  #   "name": {
  #       "given_name": "Franz",
  #       "surname": "Ferdinand",
  #       "familiar_name": "Franz",
  #       "display_name": "Franz Ferdinand (Personal)"
  #   },
  #   "email": "franz@dropbox.com",
  #   "email_verified": true,
  #   "disabled": false,
  #   "is_teammate": true,
  #   "profile_photo_url": "https://dl-web.dropbox.com/account_photo/get/dbid%3AAAH4f99T0taONIb-OurWxbNQ6ywGRopQngc?vers=1453416696524&size=128x128",
  #   "team_member_id": "dbmid:AAHhy7WsR0x-u4ZCqiDl5Fz5zvuL3kmspwU"
  # }
  # ```
  class BasicAccount < Base
    field :account_id, String
    field :name, DropboxApi::Metadata::Name
    field :email, String
    field :email_verified, :boolean
    field :disabled, :boolean
    field :is_teammate, :boolean, :optional
    field :profile_photo_url, String, :optional
    field :team_member_id, :boolean, :optional
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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