Class: Evernote::EDAM::Type::BusinessUserInfo

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/Evernote/EDAM/types_types.rb

Overview

membership, for members who are part of a business.

<dl> <dt>businessId</dt>

<dd>The ID of the Evernote Business account that the user is a member of.

<dt>businessName</dt>

<dd>The human-readable name of the Evernote Business account that the user
    is a member of.</dd>

<dt>role</dt>

<dd>The role of the user within the Evernote Business account that
    they are a member of.</dd>

<dt>email</dt>

<dd>An e-mail address that will be used by the service in the context of your
    Evernote Business activities.  For example, this e-mail address will be used
    when you e-mail a business note, when you update notes in the account of
    your business, etc.  The business e-mail cannot be used for identification
    purposes such as for logging into the service.
</dd>

</dl>

Constant Summary collapse

BUSINESSID =
1
BUSINESSNAME =
2
ROLE =
3
EMAIL =
4
FIELDS =
{
  BUSINESSID => {:type => ::Thrift::Types::I32, :name => 'businessId', :optional => true},
  BUSINESSNAME => {:type => ::Thrift::Types::STRING, :name => 'businessName', :optional => true},
  ROLE => {:type => ::Thrift::Types::I32, :name => 'role', :optional => true, :enum_class => ::Evernote::EDAM::Type::BusinessUserRole},
  EMAIL => {:type => ::Thrift::Types::STRING, :name => 'email', :optional => true}
}

Constants included from Thrift::Struct_Union

Thrift::Struct_Union::CONTAINER_TYPES

Instance Method Summary collapse

Methods included from Thrift::Struct

#<=>, #==, #differences, #eql?, field_accessor, #fields_with_default_values, generate_accessors, #hash, #initialize, #inspect, qmark_isset_method, #read, #write

Methods included from Thrift::Struct_Union

#each_field, #field_info, #inspect_collection, #inspect_field, #is_container?, #name_to_id, #read_field, #sorted_field_ids, #write_container, #write_data

Instance Method Details

#struct_fieldsObject



581
# File 'lib/Evernote/EDAM/types_types.rb', line 581

def struct_fields; FIELDS; end

#validateObject



583
584
585
586
587
# File 'lib/Evernote/EDAM/types_types.rb', line 583

def validate
  unless @role.nil? || ::Evernote::EDAM::Type::BusinessUserRole::VALID_VALUES.include?(@role)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field role!')
  end
end