Class: Evernote::EDAM::UserStore::BootstrapProfile
- Inherits:
-
Object
- Object
- Evernote::EDAM::UserStore::BootstrapProfile
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/Evernote/EDAM/user_store_types.rb
Overview
<dl>
<dt>name:</dt>
<dd>
The unique name of the profile, which is guaranteed to remain consistent across
calls to getBootstrapInfo.
</dd>
<dt>settings:</dt>
<dd>
The settings for this profile.
</dd>
</dl>
Constant Summary collapse
- NAME =
1
- SETTINGS =
2
- FIELDS =
{ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}, SETTINGS => {:type => ::Thrift::Types::STRUCT, :name => 'settings', :class => ::Evernote::EDAM::UserStore::BootstrapSettings} }
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_fields ⇒ Object
284 |
# File 'lib/Evernote/EDAM/user_store_types.rb', line 284 def struct_fields; FIELDS; end |
#validate ⇒ Object
286 287 288 289 |
# File 'lib/Evernote/EDAM/user_store_types.rb', line 286 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field settings is unset!') unless @settings end |