Class: Evernote::EDAM::NoteStore::RelatedResultSpec

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

Overview

A description of the thing for which the service will find related entities, via findRelated(), together with a description of what type of entities and how many you are seeking in the RelatednessResult.

<dl> <dt>maxNotes</dt> <dd>Return notes that are related to the query, but no more than

this many.  Any value greater than EDAM_RELATED_MAX_NOTES
will be silently capped.  If you do not set this field, then
no notes will be returned.</dd>

<dt>maxNotebooks</dt> <dd>Return notebooks that are related to the query, but no more than

this many.  Any value greater than EDAM_RELATED_MAX_NOTEBOOKS
will be silently capped.  If you do not set this field, then
no notebooks will be returned.</dd>

<dt>maxTags</dt> <dd>Return tags that are related to the query, but no more than

this many.  Any value greater than EDAM_RELATED_MAX_TAGS
will be silently capped.  If you do not set this field, then
no tags will be returned.</dd>

</dl>

Constant Summary collapse

MAXNOTES =
1
MAXNOTEBOOKS =
2
MAXTAGS =
3
FIELDS =
{
  MAXNOTES => {:type => ::Thrift::Types::I32, :name => 'maxNotes', :optional => true},
  MAXNOTEBOOKS => {:type => ::Thrift::Types::I32, :name => 'maxNotebooks', :optional => true},
  MAXTAGS => {:type => ::Thrift::Types::I32, :name => 'maxTags', :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



1117
# File 'lib/Evernote/EDAM/note_store_types.rb', line 1117

def struct_fields; FIELDS; end

#validateObject



1119
1120
# File 'lib/Evernote/EDAM/note_store_types.rb', line 1119

def validate
end